test1310 (998B)
1 <testcase> 2 <info> 3 <keywords> 4 HTTP 5 HTTP GET 6 -J 7 --show-headers 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 Content-Length: 6 18 Connection: close 19 Content-Disposition: inline; filename="name%TESTNUMBER" 20 Content-Type: text/html 21 22 12345 23 </data> 24 </reply> 25 26 # 27 # Client-side 28 <client> 29 <server> 30 http 31 </server> 32 <name> 33 HTTP GET with -J + --show-headers 34 </name> 35 <command option="no-output,no-include"> 36 http://%HOSTIP:%HTTPPORT/junk -J -O --show-headers --output-dir %LOGDIR 37 </command> 38 </client> 39 40 # 41 # Verify data after the test has been "shot" 42 <verify> 43 <protocol> 44 GET /junk HTTP/1.1 45 Host: %HOSTIP:%HTTPPORT 46 User-Agent: curl/%VERSION 47 Accept: */* 48 49 </protocol> 50 <file name="%LOGDIR/name%TESTNUMBER"> 51 HTTP/1.1 200 OK 52 Date: Tue, 09 Nov 2010 14:49:00 GMT 53 Server: test-server/fake 54 Content-Length: 6 55 Connection: close 56 Content-Disposition: inline; filename="name%TESTNUMBER" 57 Content-Type: text/html 58 59 12345 60 </file> 61 62 </verify> 63 </testcase>