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