test1127 (953B)
1 <testcase> 2 <info> 3 <keywords> 4 HTTP 5 HTTP GET 6 If-Modified-Since 7 </keywords> 8 </info> 9 # 10 # Server-side 11 <reply> 12 <data> 13 HTTP/1.1 200 OK 14 Date: Tue, 09 Nov 2010 14:49:00 GMT 15 Server: test-server/fake 16 Last-Modified: Tue, 13 Jun 1980 12:10:00 GMT 17 Content-Length: 11 18 Content-Type: text/html 19 20 0123456789 21 </data> 22 <datacheck> 23 HTTP/1.1 200 OK 24 Date: Tue, 09 Nov 2010 14:49:00 GMT 25 Server: test-server/fake 26 Last-Modified: Tue, 13 Jun 1980 12:10:00 GMT 27 Content-Length: 11 28 Content-Type: text/html 29 30 </datacheck> 31 </reply> 32 33 # 34 # Client-side 35 <client> 36 <server> 37 http 38 </server> 39 <name> 40 HTTP 200 If-Modified-Since with older document 41 </name> 42 <command> 43 http://%HOSTIP:%HTTPPORT/%TESTNUMBER -z "dec 12 12:00:00 1999 GMT" 44 </command> 45 </client> 46 47 # 48 # Verify data after the test has been "shot" 49 <verify> 50 <protocol> 51 GET /%TESTNUMBER HTTP/1.1 52 Host: %HOSTIP:%HTTPPORT 53 User-Agent: curl/%VERSION 54 Accept: */* 55 If-Modified-Since: Sun, 12 Dec 1999 12:00:00 GMT 56 57 </protocol> 58 </verify> 59 </testcase>