| 1 |
<info> |
| 2 |
<keywords> |
| 3 |
HTTP |
| 4 |
HTTP GET |
| 5 |
cookies |
| 6 |
</keywords> |
| 7 |
</info> |
| 8 |
# Server-side |
| 9 |
<reply> |
| 10 |
<data> |
| 11 |
HTTP/1.1 200 OK swsclose |
| 12 |
Date: Thu, 09 Nov 2010 14:49:00 GMT |
| 13 |
Server: test-server/fake |
| 14 |
|
| 15 |
</data> |
| 16 |
</reply> |
| 17 |
|
| 18 |
# Client-side |
| 19 |
<client> |
| 20 |
<server> |
| 21 |
http |
| 22 |
</server> |
| 23 |
<name> |
| 24 |
HTTP with cookie parsing from header file |
| 25 |
</name> |
| 26 |
<command> |
| 27 |
http://%HOSTIP:%HTTPPORT/we/want/8 -b log/heads8.txt |
| 28 |
</command> |
| 29 |
|
| 30 |
# We create this file before the command is invoked! |
| 31 |
<file name="log/heads8.txt"> |
| 32 |
HTTP/1.1 200 OK |
| 33 |
Date: Thu, 09 Nov 2010 14:49:00 GMT |
| 34 |
Server: test-server/fake |
| 35 |
Content-Type: text/html |
| 36 |
Funny-head: yesyes |
| 37 |
Set-Cookie: foobar=name; domain=127.0.0.1; path=/; |
| 38 |
Set-Cookie: mismatch=this; domain=127.0.0.1; path="/silly/"; |
| 39 |
Set-Cookie: partmatch=present; domain=.0.0.1; path=/; |
| 40 |
|
| 41 |
</file> |
| 42 |
</client> |
| 43 |
|
| 44 |
# Verify data after the test has been "shot" |
| 45 |
<verify> |
| 46 |
<strip> |
| 47 |
^User-Agent:.* |
| 48 |
</strip> |
| 49 |
<protocol> |
| 50 |
GET /we/want/8 HTTP/1.1 |
| 51 |
Host: 127.0.0.1:%HTTPPORT |
| 52 |
Accept: */* |
| 53 |
Cookie: partmatch=present; foobar=name |
| 54 |
|
| 55 |
</protocol> |
| 56 |
</verify> |