| 1 |
# Server-side |
| 2 |
<reply> |
| 3 |
<data> |
| 4 |
HTTP/1.1 416 Requested Range Not Satisfiable swsclose |
| 5 |
Date: Fri, 24 Oct 2003 21:33:12 GMT |
| 6 |
Server: Apache/1.3.19 (Unix) (Red-Hat/Linux) mod_ssl/2.8.1 OpenSSL/0.9.6 PHP/4.3.1 |
| 7 |
Last-Modified: Fri, 24 Oct 2003 18:01:23 GMT |
| 8 |
ETag: "ab57a-507-3f9968f3" |
| 9 |
Accept-Ranges: bytes |
| 10 |
Content-Length: 87 |
| 11 |
Content-Range: bytes */87 |
| 12 |
Content-Type: image/gif |
| 13 |
Connection: close |
| 14 |
|
| 15 |
</data> |
| 16 |
|
| 17 |
</reply> |
| 18 |
|
| 19 |
# Client-side |
| 20 |
<client> |
| 21 |
<server> |
| 22 |
http |
| 23 |
</server> |
| 24 |
<name> |
| 25 |
HTTP resume transfer with the whole file already downloaded and --fail |
| 26 |
</name> |
| 27 |
<command> |
| 28 |
http://%HOSTIP:%HTTPPORT/want/194 -C 87 --fail |
| 29 |
</command> |
| 30 |
</client> |
| 31 |
|
| 32 |
# Verify data after the test has been "shot" |
| 33 |
<verify> |
| 34 |
<strip> |
| 35 |
^User-Agent:.* |
| 36 |
</strip> |
| 37 |
<protocol> |
| 38 |
GET /want/194 HTTP/1.1 |
| 39 |
Range: bytes=87- |
| 40 |
Host: 127.0.0.1:%HTTPPORT |
| 41 |
Accept: */* |
| 42 |
|
| 43 |
</protocol> |
| 44 |
|
| 45 |
</verify> |