| 1 |
<info> |
| 2 |
<keywords> |
| 3 |
HTTP |
| 4 |
HTTP GET |
| 5 |
{} list |
| 6 |
</keywords> |
| 7 |
</info> |
| 8 |
# |
| 9 |
# Server-side |
| 10 |
<reply> |
| 11 |
<data nocheck=1> |
| 12 |
HTTP/1.1 200 OK |
| 13 |
Date: Thu, 09 Nov 2010 14:49:00 GMT |
| 14 |
Server: test-server/fake |
| 15 |
Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT |
| 16 |
ETag: "21025-dc7-39462498" |
| 17 |
Accept-Ranges: bytes |
| 18 |
Content-Length: 6 |
| 19 |
Content-Type: text/html |
| 20 |
Funny-head: yesyes |
| 21 |
|
| 22 |
<foo> |
| 23 |
</data> |
| 24 |
<data1> |
| 25 |
HTTP/1.0 200 OK |
| 26 |
Content-Type: text/html |
| 27 |
Funny-head: swsclose |
| 28 |
Connection: close |
| 29 |
|
| 30 |
crap data |
| 31 |
</data1> |
| 32 |
</reply> |
| 33 |
|
| 34 |
# |
| 35 |
# Client-side |
| 36 |
<client> |
| 37 |
<server> |
| 38 |
http |
| 39 |
</server> |
| 40 |
<name> |
| 41 |
HTTP, urlglob {}-retrieval and -o #[num] usage |
| 42 |
</name> |
| 43 |
<command option=no-output> |
| 44 |
"http://%HOSTIP:%HTTPPORT/{74,740001}" -o "log/dumpit#1.dump" |
| 45 |
</command> |
| 46 |
</client> |
| 47 |
|
| 48 |
# |
| 49 |
# Verify data after the test has been "shot" |
| 50 |
<verify> |
| 51 |
<strip> |
| 52 |
^User-Agent:.* |
| 53 |
</strip> |
| 54 |
<protocol> |
| 55 |
GET /74 HTTP/1.1 |
| 56 |
Host: 127.0.0.1:%HTTPPORT |
| 57 |
Accept: */* |
| 58 |
|
| 59 |
GET /740001 HTTP/1.1 |
| 60 |
Host: 127.0.0.1:%HTTPPORT |
| 61 |
Accept: */* |
| 62 |
|
| 63 |
</protocol> |
| 64 |
<file name="log/dumpit740001.dump"> |
| 65 |
HTTP/1.0 200 OK |
| 66 |
Content-Type: text/html |
| 67 |
Funny-head: swsclose |
| 68 |
Connection: close |
| 69 |
|
| 70 |
crap data |
| 71 |
</file> |
| 72 |
</verify> |