xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame^] | 1 | <testcase> |
| 2 | <info> |
| 3 | <keywords> |
| 4 | HTTP |
| 5 | HTTP GET |
| 6 | If-Modified-Since |
| 7 | -z |
| 8 | </keywords> |
| 9 | </info> |
| 10 | # |
| 11 | # Server-side |
| 12 | <reply> |
| 13 | <data nocheck="yes"> |
| 14 | HTTP/1.1 200 OK |
| 15 | Server: test-server/fake |
| 16 | Last-Modified: Tue, 13 Jun 1990 12:10:00 GMT |
| 17 | ETag: "21025-dc7-39462498" |
| 18 | Accept-Ranges: bytes |
| 19 | Content-Length: 6 |
| 20 | Connection: close |
| 21 | Content-Type: text/html |
| 22 | Funny-head: yesyes |
| 23 | |
| 24 | -foo- |
| 25 | </data> |
| 26 | <datacheck> |
| 27 | HTTP/1.1 200 OK |
| 28 | Server: test-server/fake |
| 29 | Last-Modified: Tue, 13 Jun 1990 12:10:00 GMT |
| 30 | ETag: "21025-dc7-39462498" |
| 31 | Accept-Ranges: bytes |
| 32 | Content-Length: 6 |
| 33 | Connection: close |
| 34 | Content-Type: text/html |
| 35 | Funny-head: yesyes |
| 36 | |
| 37 | </datacheck> |
| 38 | </reply> |
| 39 | |
| 40 | # |
| 41 | # Client-side |
| 42 | <client> |
| 43 | <server> |
| 44 | http |
| 45 | </server> |
| 46 | <name> |
| 47 | HTTP GET -o fname without Content-Disposition (unmet time condition) |
| 48 | </name> |
| 49 | <file name="log/outfile%TESTNUMBER"> |
| 50 | original contents |
| 51 | </file> |
| 52 | <command option="no-output,no-include"> |
| 53 | http://%HOSTIP:%HTTPPORT/%TESTNUMBER -z "dec 12 11:00:00 1999 GMT" -o log/outfile%TESTNUMBER |
| 54 | </command> |
| 55 | </client> |
| 56 | |
| 57 | # |
| 58 | # Verify data after the test has been "shot" |
| 59 | <verify> |
| 60 | <protocol> |
| 61 | GET /%TESTNUMBER HTTP/1.1
|
| 62 | Host: %HOSTIP:%HTTPPORT
|
| 63 | User-Agent: curl/%VERSION
|
| 64 | Accept: */*
|
| 65 | If-Modified-Since: Sun, 12 Dec 1999 11:00:00 GMT
|
| 66 |
|
| 67 | </protocol> |
| 68 | |
| 69 | <file1 name="log/outfile%TESTNUMBER"> |
| 70 | original contents |
| 71 | </file1> |
| 72 | |
| 73 | </verify> |
| 74 | </testcase> |