lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 | <testcase> |
| 2 | <info> |
| 3 | <keywords> |
| 4 | HTTP |
| 5 | HTTP GET |
| 6 | HTTP proxy |
| 7 | cookies |
| 8 | cookiejar |
| 9 | PSL |
| 10 | </keywords> |
| 11 | </info> |
| 12 | |
| 13 | # Server-side |
| 14 | <reply> |
| 15 | <data> |
| 16 | HTTP/1.1 200 OK |
| 17 | Date: Thu, 09 Nov 2010 14:49:00 GMT |
| 18 | Server: test-server/fake |
| 19 | Content-Length: 4 |
| 20 | Content-Type: text/html |
| 21 | Funny-head: yesyes |
| 22 | Set-Cookie: test1=forbidden1; domain=example.ck; path=/; |
| 23 | Set-Cookie: test2=allowed2; domain=www.example.ck; path=/; |
| 24 | Set-Cookie: test3=forbidden3; domain=ck; path=/; |
| 25 | Set-Cookie: test4=allowed4; domain=www.ck; path=/; |
| 26 | Set-Cookie: test5=forbidden5; domain=z-1.compute-1.amazonaws.com; path=/; |
| 27 | |
| 28 | boo |
| 29 | </data> |
| 30 | </reply> |
| 31 | |
| 32 | # Client-side |
| 33 | <client> |
| 34 | <features> |
| 35 | PSL |
| 36 | </features> |
| 37 | <server> |
| 38 | http |
| 39 | </server> |
| 40 | <name> |
| 41 | Check cookies against PSL |
| 42 | </name> |
| 43 | <setenv> |
| 44 | TZ=GMT |
| 45 | </setenv> |
| 46 | <command> |
| 47 | http://www.example.ck/1136 http://www.ck/1136 http://z-1.compute-1.amazonaws.com/1136 -b none -c log/jar1136.txt -x %HOSTIP:%HTTPPORT |
| 48 | </command> |
| 49 | |
| 50 | </client> |
| 51 | |
| 52 | # Verify data after the test has been "shot" |
| 53 | <verify> |
| 54 | <file name="log/jar1136.txt" mode="text"> |
| 55 | # Netscape HTTP Cookie File |
| 56 | # https://curl.haxx.se/docs/http-cookies.html |
| 57 | # This file was generated by libcurl! Edit at your own risk. |
| 58 | |
| 59 | .www.example.ck TRUE / FALSE 0 test2 allowed2 |
| 60 | .www.ck TRUE / FALSE 0 test4 allowed4 |
| 61 | .z-1.compute-1.amazonaws.com TRUE / FALSE 0 test5 forbidden5 |
| 62 | </file> |
| 63 | </verify> |
| 64 | </testcase> |