| <?xml version="1.0" encoding="US-ASCII"?> |
| <testcase> |
| <info> |
| <keywords> |
| HTTP |
| Referer |
| </keywords> |
| </info> |
| |
| # Server-side |
| <reply> |
| |
| # this is returned first since we get no proxy-auth |
| <data crlf="headers" nocheck="yes"> |
| HTTP/1.1 200 OK |
| Content-Length: 6 |
| |
| hello |
| </data> |
| |
| </reply> |
| |
| # Client-side |
| <client> |
| <server> |
| http |
| </server> |
| |
| <tool> |
| lib%TESTNUMBER |
| </tool> |
| <name> |
| Set referer first then NULL it |
| </name> |
| <command> |
| http://%HOSTIP:%HTTPPORT |
| </command> |
| </client> |
| |
| # Verify data after the test has been "shot" |
| <verify> |
| <protocol crlf="headers"> |
| GET / HTTP/1.1 |
| Host: %HOSTIP:%HTTPPORT |
| Accept: */* |
| Referer: https://secret.example.com/ |
| |
| GET / HTTP/1.1 |
| Host: %HOSTIP:%HTTPPORT |
| Accept: */* |
| |
| </protocol> |
| |
| </verify> |
| </testcase> |