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 proxy |
| 7 | cookies |
| 8 | </keywords> |
| 9 | </info> |
| 10 | |
| 11 | # Server-side |
| 12 | <reply> |
| 13 | <data> |
| 14 | HTTP/1.1 200 OK
|
| 15 | Date: Tue, 25 Sep 2001 19:37:44 GMT
|
| 16 | Content-Type: text/html
|
| 17 | Set-Cookie: XToken=xt;Domain=.z.x.com;Path=/
|
| 18 | Cache-control: private
|
| 19 | Content-Length: 62
|
| 20 |
|
| 21 | This server reply is for testing a simple cookie test case... |
| 22 | </data> |
| 23 | </reply> |
| 24 | |
| 25 | # Client-side |
| 26 | <client> |
| 27 | <server> |
| 28 | http |
| 29 | </server> |
| 30 | <name> |
| 31 | HTTP, get cookie with dot prefixed full domain |
| 32 | </name> |
| 33 | <command> |
| 34 | -c log/jar%TESTNUMBER -x %HOSTIP:%HTTPPORT http://z.x.com/%TESTNUMBER |
| 35 | </command> |
| 36 | <features> |
| 37 | proxy |
| 38 | </features> |
| 39 | </client> |
| 40 | |
| 41 | # Verify data after the test has been "shot" |
| 42 | <verify> |
| 43 | <protocol> |
| 44 | GET http://z.x.com/%TESTNUMBER HTTP/1.1
|
| 45 | Host: z.x.com
|
| 46 | User-Agent: curl/%VERSION
|
| 47 | Accept: */*
|
| 48 | Proxy-Connection: Keep-Alive
|
| 49 |
|
| 50 | </protocol> |
| 51 | <file name="log/jar%TESTNUMBER" mode="text"> |
| 52 | # Netscape HTTP Cookie File |
| 53 | # https://curl.se/docs/http-cookies.html |
| 54 | # This file was generated by libcurl! Edit at your own risk. |
| 55 | |
| 56 | .z.x.com TRUE / FALSE 0 XToken xt |
| 57 | </file> |
| 58 | </verify> |
| 59 | </testcase> |