| 1 |
# Server-side |
| 2 |
# This particular response is an exact excerpt from an actual Apache |
| 3 |
# server when asked for a 0-10,12-15 range. |
| 4 |
<reply> |
| 5 |
<data> |
| 6 |
HTTP/1.1 206 Partial Content swsclose |
| 7 |
Date: Sat, 24 Apr 2004 09:24:49 GMT |
| 8 |
Server: Apache/1.3.29 (Unix) mod_throttle/3.1.2 PHP/4.3.4 mod_fastcgi/2.4.0 |
| 9 |
Last-Modified: Tue, 23 Mar 2004 08:23:14 GMT |
| 10 |
ETag: "53814a-ec5-405ff3f2" |
| 11 |
Accept-Ranges: bytes |
| 12 |
Content-Length: 187 |
| 13 |
Content-Type: multipart/byteranges; boundary=408a326132c |
| 14 |
|
| 15 |
--408a326132c |
| 16 |
Content-type: text/html |
| 17 |
Content-range: bytes 0-10/3781 |
| 18 |
|
| 19 |
<html> |
| 20 |
<hea |
| 21 |
|
| 22 |
--408a326132c |
| 23 |
Content-type: text/html |
| 24 |
Content-range: bytes 12-15/3781 |
| 25 |
|
| 26 |
> |
| 27 |
<t |
| 28 |
|
| 29 |
--408a326132c-- |
| 30 |
</data> |
| 31 |
</reply> |
| 32 |
|
| 33 |
# Client-side |
| 34 |
<client> |
| 35 |
<server> |
| 36 |
http |
| 37 |
</server> |
| 38 |
<name> |
| 39 |
HTTP range with multiple ranges |
| 40 |
</name> |
| 41 |
<command> |
| 42 |
http://%HOSTIP:%HTTPPORT/want/164 -r 0-10,12-15 |
| 43 |
</command> |
| 44 |
</client> |
| 45 |
|
| 46 |
# Verify data after the test has been "shot" |
| 47 |
<verify> |
| 48 |
<strip> |
| 49 |
^User-Agent:.* |
| 50 |
</strip> |
| 51 |
<protocol> |
| 52 |
GET /want/164 HTTP/1.1 |
| 53 |
Range: bytes=0-10,12-15 |
| 54 |
Host: 127.0.0.1:%HTTPPORT |
| 55 |
Accept: */* |
| 56 |
|
| 57 |
</protocol> |
| 58 |
</verify> |