xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame^] | 1 | <testcase> |
| 2 | <info> |
| 3 | <keywords> |
| 4 | HTTP |
| 5 | HTTP GET |
| 6 | HTTP replaced headers |
| 7 | CURLOPT_TIMECONDITION |
| 8 | If-Modified-Since |
| 9 | </keywords> |
| 10 | </info> |
| 11 | |
| 12 | # Server-side |
| 13 | <reply> |
| 14 | <data nocheck="yes"> |
| 15 | HTTP/1.1 304 Not Modified |
| 16 | Date: Thu, 11 Jul 2019 02:26:59 GMT |
| 17 | Server: test-server/swsclose |
| 18 | |
| 19 | </data> |
| 20 | </reply> |
| 21 | # Client-side |
| 22 | <client> |
| 23 | <server> |
| 24 | http |
| 25 | </server> |
| 26 | <name> |
| 27 | HTTP custom header overrides CURLOPT_TIMECONDITION |
| 28 | </name> |
| 29 | <tool> |
| 30 | lib%TESTNUMBER |
| 31 | </tool> |
| 32 | <command> |
| 33 | http://%HOSTIP:%HTTPPORT/%TESTNUMBER |
| 34 | </command> |
| 35 | </client> |
| 36 | |
| 37 | <verify> |
| 38 | # Note here the lack of If-Modified-Since |
| 39 | <protocol> |
| 40 | GET /%TESTNUMBER HTTP/1.1
|
| 41 | Host: %HOSTIP:%HTTPPORT
|
| 42 | Accept: */*
|
| 43 |
|
| 44 | </protocol> |
| 45 | </verify> |
| 46 | </testcase> |