test499 (1058B)
1 <testcase> 2 <info> 3 <keywords> 4 HTTP 5 HTTP GET 6 </keywords> 7 </info> 8 9 # 10 # Server-side 11 <reply> 12 <data crlf="yes" nocheck="yes"> 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 2000 12:10:00 GMT 17 ETag: "21025-dc7-39462498" 18 Accept-Ranges: bytes 19 Content-Length: 6 20 Connection: close 21 Content-Type: text/html 22 Funny-head: yesyes 23 24 -foo- 25 </data> 26 <datacheck crlf="yes"> 27 HTTP/1.1 200 OK 28 Date: Tue, 09 Nov 2010 14:49:00 GMT 29 Server: test-server/fake 30 Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT 31 ETag: "21025-dc7-39462498" 32 Accept-Ranges: bytes 33 Content-Length: 6 34 Connection: close 35 Content-Type: text/html 36 Funny-head: yesyes 37 </datacheck> 38 </reply> 39 40 # 41 # Client-side 42 <client> 43 <server> 44 http 45 </server> 46 <name> 47 HTTP HEAD to server still sending a body 48 </name> 49 <command> 50 http://%HOSTIP:%HTTPPORT/%TESTNUMBER -I 51 </command> 52 </client> 53 54 # 55 # Verify data after the test has been "shot" 56 <verify> 57 <protocol crlf="yes"> 58 HEAD /%TESTNUMBER HTTP/1.1 59 Host: %HOSTIP:%HTTPPORT 60 User-Agent: curl/%VERSION 61 Accept: */* 62 63 </protocol> 64 </verify> 65 </testcase>