xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame^] | 1 | <testcase> |
| 2 | <info> |
| 3 | <keywords> |
| 4 | HTTP |
| 5 | </keywords> |
| 6 | </info> |
| 7 | # |
| 8 | # Server-side |
| 9 | <reply> |
| 10 | <data> |
| 11 | HTTP/1.0 200 OK
|
| 12 | Server: test-server/fake
|
| 13 | Content-Type: text/html
|
| 14 | Content-Length: 6
|
| 15 |
|
| 16 | blaha |
| 17 | </data> |
| 18 | </reply> |
| 19 | |
| 20 | # |
| 21 | # Client-side |
| 22 | <client> |
| 23 | <server> |
| 24 | http |
| 25 | </server> |
| 26 | <name> |
| 27 | HTTP multiple provided Host: headers |
| 28 | </name> |
| 29 | <command> |
| 30 | -H "Host: host1" -H "Host: host2" -H "Host: host3" http://%HOSTIP:%HTTPPORT/%TESTNUMBER |
| 31 | </command> |
| 32 | </client> |
| 33 | |
| 34 | # |
| 35 | # Verify data after the test has been "shot" |
| 36 | <verify> |
| 37 | <protocol> |
| 38 | GET /%TESTNUMBER HTTP/1.1
|
| 39 | Host: host1
|
| 40 | User-Agent: curl/%VERSION
|
| 41 | Accept: */*
|
| 42 |
|
| 43 | </protocol> |
| 44 | </verify> |
| 45 | </testcase> |