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 | |
| 10 | # Server-side |
| 11 | <reply> |
| 12 | |
| 13 | <data> |
| 14 | HTTP/1.1 200 OK
|
| 15 | Date: Tue, 09 Nov 2010 14:49:00 GMT
|
| 16 | Content-Length: 0
|
| 17 | Set-Cookie: ckyPersistent=permanent;path=;path=/
|
| 18 |
|
| 19 | </data> |
| 20 | </reply> |
| 21 | |
| 22 | # Client-side |
| 23 | <client> |
| 24 | <server> |
| 25 | http |
| 26 | </server> |
| 27 | <name> |
| 28 | HTTP cookie with path set twice |
| 29 | </name> |
| 30 | <command> |
| 31 | http://%HOSTIP:%HTTPPORT/%TESTNUMBER -c log/cookies%TESTNUMBER.txt |
| 32 | </command> |
| 33 | </client> |
| 34 | |
| 35 | # Verify data after the test has been "shot" |
| 36 | <verify> |
| 37 | <protocol> |
| 38 | GET /%TESTNUMBER HTTP/1.1
|
| 39 | Host: %HOSTIP:%HTTPPORT
|
| 40 | User-Agent: curl/%VERSION
|
| 41 | Accept: */*
|
| 42 |
|
| 43 | </protocol> |
| 44 | <file name="log/cookies%TESTNUMBER.txt" mode="text"> |
| 45 | # Netscape HTTP Cookie File |
| 46 | # https://curl.se/docs/http-cookies.html |
| 47 | # This file was generated by libcurl! Edit at your own risk. |
| 48 | |
| 49 | %HOSTIP FALSE / FALSE 0 ckyPersistent permanent |
| 50 | </file> |
| 51 | </verify> |
| 52 | </testcase> |