| 1 |
<info> |
| 2 |
<keywords> |
| 3 |
HTTP |
| 4 |
HTTP GET |
| 5 |
-z |
| 6 |
</keywords> |
| 7 |
</info> |
| 8 |
# |
| 9 |
# Server-side |
| 10 |
<reply> |
| 11 |
<data> |
| 12 |
HTTP/1.1 200 OK |
| 13 |
Server: test-server/fake |
| 14 |
Last-Modified: Tue, 13 Jun 1990 12:10:00 GMT |
| 15 |
ETag: "21025-dc7-39462498" |
| 16 |
Accept-Ranges: bytes |
| 17 |
Content-Length: 6 |
| 18 |
Connection: close |
| 19 |
Content-Type: text/html |
| 20 |
Funny-head: yesyes |
| 21 |
|
| 22 |
<foo> |
| 23 |
</data> |
| 24 |
<datacheck> |
| 25 |
HTTP/1.1 200 OK |
| 26 |
Server: test-server/fake |
| 27 |
Last-Modified: Tue, 13 Jun 1990 12:10:00 GMT |
| 28 |
ETag: "21025-dc7-39462498" |
| 29 |
Accept-Ranges: bytes |
| 30 |
Content-Length: 6 |
| 31 |
Connection: close |
| 32 |
Content-Type: text/html |
| 33 |
Funny-head: yesyes |
| 34 |
|
| 35 |
</datacheck> |
| 36 |
</reply> |
| 37 |
|
| 38 |
# |
| 39 |
# Client-side |
| 40 |
<client> |
| 41 |
<server> |
| 42 |
http |
| 43 |
</server> |
| 44 |
<name> |
| 45 |
HTTP with -z "newer date" |
| 46 |
</name> |
| 47 |
<command> |
| 48 |
http://%HOSTIP:%HTTPPORT/78 -z "dec 12 11:00:00 1999 GMT" |
| 49 |
</command> |
| 50 |
</client> |
| 51 |
|
| 52 |
# |
| 53 |
# Verify data after the test has been "shot" |
| 54 |
<verify> |
| 55 |
<strip> |
| 56 |
^User-Agent:.* |
| 57 |
</strip> |
| 58 |
<protocol> |
| 59 |
GET /78 HTTP/1.1 |
| 60 |
Host: 127.0.0.1:%HTTPPORT |
| 61 |
Accept: */* |
| 62 |
If-Modified-Since: Sun, 12 Dec 1999 11:00:00 GMT |
| 63 |
|
| 64 |
</protocol> |
| 65 |
</verify> |