xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame] | 1 | <testcase> |
| 2 | <info> |
| 3 | <keywords> |
| 4 | HTTP |
| 5 | HTTP GET |
| 6 | --write-out |
| 7 | </keywords> |
| 8 | </info> |
| 9 | |
| 10 | # Server-side |
| 11 | <reply> |
| 12 | <data> |
| 13 | HTTP/1.1 200 This is a weirdo text message swsclose
|
| 14 | Content-Length: 4
|
| 15 | Connection: close
|
| 16 |
|
| 17 | Moo |
| 18 | </data> |
| 19 | </reply> |
| 20 | |
| 21 | # Client-side |
| 22 | <client> |
| 23 | <server> |
| 24 | http |
| 25 | </server> |
| 26 | <name> |
| 27 | --write-out from file with empty file |
| 28 | </name> |
| 29 | <command> |
| 30 | http://%HOSTIP:%HTTPPORT/we/want/our/%TESTNUMBER -w @log/blank%TESTNUMBER |
| 31 | </command> |
| 32 | <file name="log/blank%TESTNUMBER"> |
| 33 | </file> |
| 34 | </client> |
| 35 | |
| 36 | # Verify data after the test has been "shot" |
| 37 | <verify> |
| 38 | <protocol> |
| 39 | GET /we/want/our/%TESTNUMBER HTTP/1.1
|
| 40 | Host: %HOSTIP:%HTTPPORT
|
| 41 | User-Agent: curl/%VERSION
|
| 42 | Accept: */*
|
| 43 |
|
| 44 | </protocol> |
| 45 | </verify> |
| 46 | </testcase> |