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