test1443 (1009B)
1 <testcase> 2 <info> 3 <keywords> 4 HTTP 5 HTTP GET 6 -O 7 --remote-time 8 </keywords> 9 </info> 10 11 # 12 <reply> 13 <data nocheck="yes"> 14 HTTP/1.1 200 OK 15 Date: Tue, 09 Nov 2010 14:49:00 GMT 16 Server: test-server/fake 17 Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT 18 Content-Length: 6 19 Connection: close 20 21 12345 22 </data> 23 </reply> 24 25 # 26 # Client-side 27 <client> 28 <server> 29 http 30 </server> 31 <name> 32 HTTP GET with -O and --remote-time 33 </name> 34 <command option="no-output,no-include"> 35 http://%HOSTIP:%HTTPPORT/%TESTNUMBER -O --remote-time --output-dir %LOGDIR 36 </command> 37 # Verify the mtime of the file. The mtime is specifically chosen to be an even 38 # number so that it can be represented exactly on a FAT filesystem. 39 </client> 40 41 # 42 # Verify data after the test has been "shot" 43 <verify> 44 <protocol> 45 GET /%TESTNUMBER HTTP/1.1 46 Host: %HOSTIP:%HTTPPORT 47 User-Agent: curl/%VERSION 48 Accept: */* 49 50 </protocol> 51 <file name="%LOGDIR/%TESTNUMBER"> 52 12345 53 </file> 54 <postcheck> 55 %PERL -e 'exit((stat("%LOGDIR/%TESTNUMBER"))[9] != 960898200)' 56 </postcheck> 57 </verify> 58 </testcase>