| 1 |
# Server-side |
| 2 |
<reply> |
| 3 |
<data> |
| 4 |
HTTP/1.1 301 OK swsbounce |
| 5 |
Location: /189 |
| 6 |
Content-Length: 2 |
| 7 |
|
| 8 |
OK |
| 9 |
</data> |
| 10 |
<data1> |
| 11 |
HTTP/1.1 200 OK |
| 12 |
Connection: close |
| 13 |
Content-Length: 15 |
| 14 |
|
| 15 |
Actual content |
| 16 |
</data1> |
| 17 |
|
| 18 |
<datacheck> |
| 19 |
HTTP/1.1 301 OK swsbounce |
| 20 |
Location: /189 |
| 21 |
Content-Length: 2 |
| 22 |
|
| 23 |
HTTP/1.1 200 OK |
| 24 |
Connection: close |
| 25 |
Content-Length: 15 |
| 26 |
|
| 27 |
</datacheck> |
| 28 |
|
| 29 |
</reply> |
| 30 |
|
| 31 |
# Client-side |
| 32 |
<client> |
| 33 |
<server> |
| 34 |
http |
| 35 |
</server> |
| 36 |
<name> |
| 37 |
HTTP GET with resume and redirect (to a page that doesn't resume) |
| 38 |
</name> |
| 39 |
<command> |
| 40 |
http://%HOSTIP:%HTTPPORT/189 -C 50 -L |
| 41 |
</command> |
| 42 |
</client> |
| 43 |
|
| 44 |
# Verify data after the test has been "shot" |
| 45 |
<verify> |
| 46 |
<strip> |
| 47 |
^User-Agent:.* |
| 48 |
</strip> |
| 49 |
<protocol> |
| 50 |
GET /189 HTTP/1.1 |
| 51 |
Range: bytes=50- |
| 52 |
User-Agent: curl/7.6 (sparc-sun-solaris2.7) libcurl 7.6-pre4 (SSL 0.9.6) (krb4 enabled) |
| 53 |
Host: 127.0.0.1:%HTTPPORT |
| 54 |
Accept: */* |
| 55 |
|
| 56 |
GET /189 HTTP/1.1 |
| 57 |
Range: bytes=50- |
| 58 |
User-Agent: curl/7.12.2-CVS (i686-pc-linux-gnu) libcurl/7.12.2-CVS OpenSSL/0.9.7d zlib/1.2.1.2 libidn/0.5.2 |
| 59 |
Host: 127.0.0.1:%HTTPPORT |
| 60 |
Accept: */* |
| 61 |
|
| 62 |
</protocol> |
| 63 |
# 33 is CURLE_HTTP_RANGE_ERROR |
| 64 |
<errorcode> |
| 65 |
33 |
| 66 |
</errorcode> |
| 67 |
</verify> |