1 <testcase> 2 <info> 3 <keywords> 4 HTTP 5 HTTP GET 6 Range 7 </keywords> 8 </info> 9 10 # Server-side 11 <reply> 12 <data nocheck="yes"> 13 HTTP/1.1 416 Requested Range Not Satisfiable 14 Date: Thu, 09 Sep 2010 14:49:00 GMT 15 Accept-Ranges: bytes 16 Content-Length: 115 17 18 This is a long error message that is large enough that the test server is 19 guaranteed to split it into two packets. 20 </data> 21 22 <data1> 23 HTTP/1.1 206 Partial Content 24 Date: Thu, 09 Sep 2010 14:49:01 GMT 25 Accept-Ranges: bytes 26 Content-Range: bytes 10-18/155 27 Content-Length: 13 28 Content-Type: text/plain 29 30 partial body 31 </data1> 32 33 <servercmd> 34 writedelay: 1 35 </servercmd> 36 </reply> 37 38 # Client-side 39 <client> 40 <server> 41 http 42 </server> 43 <name> 44 HTTP with invalid range then another URL 45 </name> 46 <command> 47 -r 10-22 http://%HOSTIP:%HTTPPORT/want/1117 http://%HOSTIP:%HTTPPORT/wantmore/11170001 48 </command> 49 </client> 50 51 # Verify data after the test has been "shot" 52 <verify> 53 <stdout> 54 HTTP/1.1 416 Requested Range Not Satisfiable 55 Date: Thu, 09 Sep 2010 14:49:00 GMT 56 Accept-Ranges: bytes 57 Content-Length: 115 58 59 This is a long error message that is large enough that the test server is 60 guaranteed to split it into two packets. 61 HTTP/1.1 206 Partial Content 62 Date: Thu, 09 Sep 2010 14:49:01 GMT 63 Accept-Ranges: bytes 64 Content-Range: bytes 10-18/155 65 Content-Length: 13 66 Content-Type: text/plain 67 68 partial body 69 </stdout> 70 71 <strip> 72 ^User-Agent:.* 73 </strip> 74 <protocol> 75 GET /want/1117 HTTP/1.1 76 Host: %HOSTIP:%HTTPPORT 77 Range: bytes=10-22 78 Accept: */* 79 80 GET /wantmore/11170001 HTTP/1.1 81 Host: %HOSTIP:%HTTPPORT 82 Range: bytes=10-22 83 Accept: */* 84 85 </protocol> 86 </verify> 87 </testcase> 88