xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame^] | 1 | <testcase> |
| 2 | <info> |
| 3 | <keywords> |
| 4 | HTTP |
| 5 | HTTP GET |
| 6 | CURLINFO_FILETIME |
| 7 | </keywords> |
| 8 | </info> |
| 9 | |
| 10 | # |
| 11 | # Server-side |
| 12 | <reply> |
| 13 | <data nocheck="yes"> |
| 14 | HTTP/1.0 200 OK swsclose
|
| 15 | Last-Modified: Thu, 01 Jan 1970 00:00:30 GMT
|
| 16 | Content-Length: 0
|
| 17 |
|
| 18 | </data> |
| 19 | </reply> |
| 20 | |
| 21 | # Client-side |
| 22 | <client> |
| 23 | <server> |
| 24 | http |
| 25 | </server> |
| 26 | # tool is what to use instead of 'curl' |
| 27 | <tool> |
| 28 | lib%TESTNUMBER |
| 29 | </tool> |
| 30 | <name> |
| 31 | CURLINFO_FILETIME init and reset |
| 32 | </name> |
| 33 | <command> |
| 34 | http://%HOSTIP:%HTTPPORT/%TESTNUMBER |
| 35 | </command> |
| 36 | </client> |
| 37 | |
| 38 | # |
| 39 | # Verify data after the test has been "shot" |
| 40 | <verify> |
| 41 | <protocol> |
| 42 | GET /%TESTNUMBER HTTP/1.1
|
| 43 | Host: %HOSTIP:%HTTPPORT
|
| 44 | Accept: */*
|
| 45 |
|
| 46 | </protocol> |
| 47 | <errorcode> |
| 48 | 0 |
| 49 | </errorcode> |
| 50 | </verify> |
| 51 | </testcase> |