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 | cookies |
| 8 | httponly |
| 9 | </keywords> |
| 10 | </info> |
| 11 | |
| 12 | # Server-side |
| 13 | <reply> |
| 14 | <data> |
| 15 | HTTP/1.0 200 OK swsclose
|
| 16 | Date: Tue, 09 Nov 2010 14:49:00 GMT
|
| 17 | Content-Type: text/html
|
| 18 | Set-Cookie: I-am=here; domain=localhost;
|
| 19 |
|
| 20 | boo |
| 21 | </data> |
| 22 | </reply> |
| 23 | |
| 24 | # Client-side |
| 25 | <client> |
| 26 | <server> |
| 27 | http |
| 28 | </server> |
| 29 | <name> |
| 30 | HTTP, use cookies with localhost |
| 31 | </name> |
| 32 | <command> |
| 33 | http://%HOSTIP:%HTTPPORT/we/want/%TESTNUMBER http://%HOSTIP:%HTTPPORT/we/want?hoge=fuga -b non-existing -H "Host: localhost" |
| 34 | </command> |
| 35 | </client> |
| 36 | |
| 37 | # Verify data after the test has been "shot" |
| 38 | <verify> |
| 39 | <protocol> |
| 40 | GET /we/want/%TESTNUMBER HTTP/1.1
|
| 41 | Host: localhost
|
| 42 | User-Agent: curl/%VERSION
|
| 43 | Accept: */*
|
| 44 |
|
| 45 | GET /we/want?hoge=fuga HTTP/1.1
|
| 46 | Host: localhost
|
| 47 | User-Agent: curl/%VERSION
|
| 48 | Accept: */*
|
| 49 | Cookie: I-am=here
|
| 50 |
|
| 51 | </protocol> |
| 52 | </verify> |
| 53 | </testcase> |