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