xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame^] | 1 | <testcase> |
| 2 | <info> |
| 3 | <keywords> |
| 4 | HTTP |
| 5 | HTTP GET |
| 6 | cookies |
| 7 | </keywords> |
| 8 | </info> |
| 9 | # Server-side |
| 10 | <reply> |
| 11 | <data> |
| 12 | HTTP/1.1 200 OK
|
| 13 | Server: Microsoft-IIS/4.0
|
| 14 | Date: Tue, 25 Sep 2001 19:37:44 GMT
|
| 15 | Content-Type: text/html
|
| 16 | Connection: close
|
| 17 | Content-Length: 21
|
| 18 |
|
| 19 | This server says moo |
| 20 | </data> |
| 21 | </reply> |
| 22 | |
| 23 | # Client-side |
| 24 | <client> |
| 25 | <server> |
| 26 | http |
| 27 | </server> |
| 28 | <name> |
| 29 | HTTP, junk session cookies |
| 30 | </name> |
| 31 | <command> |
| 32 | %HOSTIP:%HTTPPORT/want/%TESTNUMBER -b log/injar%TESTNUMBER -j |
| 33 | </command> |
| 34 | <file name="log/injar%TESTNUMBER"> |
| 35 | %HOSTIP FALSE / FALSE 2139150993 mooo indeed |
| 36 | %HOSTIP FALSE / FALSE 0 moo1 indeed |
| 37 | %HOSTIP FALSE / FALSE 1 moo2 indeed |
| 38 | </file> |
| 39 | </client> |
| 40 | |
| 41 | # Verify data after the test has been "shot" |
| 42 | <verify> |
| 43 | <protocol> |
| 44 | GET /want/%TESTNUMBER HTTP/1.1
|
| 45 | Host: %HOSTIP:%HTTPPORT
|
| 46 | User-Agent: curl/%VERSION
|
| 47 | Accept: */*
|
| 48 | Cookie: mooo=indeed
|
| 49 |
|
| 50 | </protocol> |
| 51 | </verify> |
| 52 | </testcase> |