2007-01-22 21:25:56 -05:00
|
|
|
<testcase>
|
2007-10-11 21:44:22 -04:00
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
HTTP
|
|
|
|
HTTP GET
|
2008-06-21 13:56:48 -04:00
|
|
|
Content-Range
|
2007-10-11 21:44:22 -04:00
|
|
|
Resume
|
|
|
|
</keywords>
|
2007-10-11 22:09:45 -04:00
|
|
|
</info>
|
2007-10-11 21:44:22 -04:00
|
|
|
|
2004-10-25 07:28:40 -04:00
|
|
|
# Server-side
|
|
|
|
<reply>
|
|
|
|
<data>
|
|
|
|
HTTP/1.1 416 Requested Range Not Satisfiable swsclose
|
|
|
|
Date: Fri, 24 Oct 2003 21:33:12 GMT
|
2012-11-13 07:58:14 -05:00
|
|
|
Server: Apache/1.3.19 (Unix) (Red-Hat/Linux) mod_ssl/2.8.1 OpenSSL/0.9.6 PHP/4.3.1
|
2004-10-25 07:28:40 -04:00
|
|
|
Last-Modified: Fri, 24 Oct 2003 18:01:23 GMT
|
|
|
|
ETag: "ab57a-507-3f9968f3"
|
|
|
|
Accept-Ranges: bytes
|
2010-10-01 18:22:48 -04:00
|
|
|
Content-Length: 4
|
2004-10-25 07:28:40 -04:00
|
|
|
Content-Range: bytes */87
|
|
|
|
Content-Type: image/gif
|
|
|
|
Connection: close
|
|
|
|
|
2010-10-01 18:22:48 -04:00
|
|
|
bad
|
2004-10-25 07:28:40 -04:00
|
|
|
</data>
|
|
|
|
|
2014-08-14 10:43:24 -04:00
|
|
|
<datacheck>
|
|
|
|
HTTP/1.1 416 Requested Range Not Satisfiable swsclose
|
|
|
|
Date: Fri, 24 Oct 2003 21:33:12 GMT
|
|
|
|
Server: Apache/1.3.19 (Unix) (Red-Hat/Linux) mod_ssl/2.8.1 OpenSSL/0.9.6 PHP/4.3.1
|
|
|
|
Last-Modified: Fri, 24 Oct 2003 18:01:23 GMT
|
|
|
|
ETag: "ab57a-507-3f9968f3"
|
|
|
|
Accept-Ranges: bytes
|
|
|
|
Content-Length: 4
|
|
|
|
Content-Range: bytes */87
|
|
|
|
Content-Type: image/gif
|
|
|
|
Connection: close
|
|
|
|
</datacheck>
|
|
|
|
|
2004-10-25 07:28:40 -04:00
|
|
|
</reply>
|
|
|
|
|
|
|
|
# Client-side
|
|
|
|
<client>
|
|
|
|
<server>
|
|
|
|
http
|
|
|
|
</server>
|
|
|
|
<name>
|
|
|
|
HTTP resume transfer with the whole file already downloaded and --fail
|
|
|
|
</name>
|
|
|
|
<command>
|
|
|
|
http://%HOSTIP:%HTTPPORT/want/194 -C 87 --fail
|
|
|
|
</command>
|
|
|
|
</client>
|
|
|
|
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
|
|
|
<protocol>
|
|
|
|
GET /want/194 HTTP/1.1
|
2007-09-14 15:32:31 -04:00
|
|
|
Host: %HOSTIP:%HTTPPORT
|
2015-03-11 19:50:46 -04:00
|
|
|
Range: bytes=87-
|
2020-10-02 07:45:24 -04:00
|
|
|
User-Agent: curl/%VERSION
|
2004-10-25 07:28:40 -04:00
|
|
|
Accept: */*
|
|
|
|
|
|
|
|
</protocol>
|
2014-08-14 10:43:24 -04:00
|
|
|
# CURLE_HTTP_RETURNED_ERROR
|
|
|
|
<errorcode>
|
|
|
|
22
|
|
|
|
</errorcode>
|
2004-10-25 07:28:40 -04:00
|
|
|
</verify>
|
2007-01-22 21:25:56 -05:00
|
|
|
</testcase>
|