xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame^] | 1 | <testcase> |
| 2 | <info> |
| 3 | <keywords> |
| 4 | HTTP |
| 5 | HTTP proxy |
| 6 | cookies |
| 7 | </keywords> |
| 8 | </info> |
| 9 | |
| 10 | # |
| 11 | # Server-side |
| 12 | <reply> |
| 13 | <data> |
| 14 | HTTP/1.1 200 OK |
| 15 | Date: Tue, 09 Nov 2010 14:49:00 GMT |
| 16 | Server: test-server/fake |
| 17 | Content-Length: 0 |
| 18 | Connection: close |
| 19 | Content-Type: text/html |
| 20 | Set-Cookie: a=b; Domain=.me.; |
| 21 | |
| 22 | </data> |
| 23 | |
| 24 | </reply> |
| 25 | |
| 26 | # |
| 27 | # Client-side |
| 28 | <client> |
| 29 | <features> |
| 30 | proxy |
| 31 | </features> |
| 32 | <server> |
| 33 | http |
| 34 | </server> |
| 35 | <name> |
| 36 | URL with trailing dot and receiving a cookie for the TLD with dot |
| 37 | </name> |
| 38 | <command> |
| 39 | -x http://%HOSTIP:%HTTPPORT http://firsthost.me. -c log/cookies%TESTNUMBER |
| 40 | </command> |
| 41 | </client> |
| 42 | |
| 43 | # |
| 44 | # Verify data after the test has been "shot" |
| 45 | <verify> |
| 46 | <protocol> |
| 47 | GET http://firsthost.me./ HTTP/1.1
|
| 48 | Host: firsthost.me.
|
| 49 | User-Agent: curl/%VERSION
|
| 50 | Accept: */*
|
| 51 | Proxy-Connection: Keep-Alive
|
| 52 |
|
| 53 | </protocol> |
| 54 | <file name="log/cookies%TESTNUMBER" mode="text"> |
| 55 | # Netscape HTTP Cookie File |
| 56 | # https://curl.se/docs/http-cookies.html |
| 57 | # This file was generated by libcurl! Edit at your own risk. |
| 58 | |
| 59 | </file> |
| 60 | </verify> |
| 61 | </testcase> |