2015-09-29 17:33:01 +08:00
|
|
|
<testcase>
|
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
HTTP
|
|
|
|
HTTP GET
|
|
|
|
HTTP proxy
|
|
|
|
cookies
|
|
|
|
cookiejar
|
|
|
|
PSL
|
|
|
|
</keywords>
|
|
|
|
</info>
|
|
|
|
|
|
|
|
# Server-side
|
|
|
|
<reply>
|
|
|
|
<data>
|
|
|
|
HTTP/1.1 200 OK
|
2020-02-28 22:00:03 +08:00
|
|
|
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
2015-09-29 17:33:01 +08:00
|
|
|
Server: test-server/fake
|
|
|
|
Content-Length: 4
|
|
|
|
Content-Type: text/html
|
|
|
|
Funny-head: yesyes
|
|
|
|
Set-Cookie: test1=forbidden1; domain=example.ck; path=/;
|
|
|
|
Set-Cookie: test2=allowed2; domain=www.example.ck; path=/;
|
|
|
|
Set-Cookie: test3=forbidden3; domain=ck; path=/;
|
|
|
|
Set-Cookie: test4=allowed4; domain=www.ck; path=/;
|
|
|
|
Set-Cookie: test5=forbidden5; domain=z-1.compute-1.amazonaws.com; path=/;
|
|
|
|
|
|
|
|
boo
|
|
|
|
</data>
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
# Client-side
|
|
|
|
<client>
|
2015-10-19 05:20:08 +08:00
|
|
|
<features>
|
|
|
|
PSL
|
2019-10-15 04:29:19 +08:00
|
|
|
proxy
|
2015-10-19 05:20:08 +08:00
|
|
|
</features>
|
2015-09-29 17:33:01 +08:00
|
|
|
<server>
|
|
|
|
http
|
|
|
|
</server>
|
|
|
|
<name>
|
|
|
|
Check cookies against PSL
|
|
|
|
</name>
|
|
|
|
<setenv>
|
|
|
|
TZ=GMT
|
|
|
|
</setenv>
|
|
|
|
<command>
|
2021-03-13 00:38:26 +08:00
|
|
|
http://www.example.ck/%TESTNUMBER http://www.ck/%TESTNUMBER http://z-1.compute-1.amazonaws.com/%TESTNUMBER -b none -c log/jar%TESTNUMBER.txt -x %HOSTIP:%HTTPPORT
|
2015-09-29 17:33:01 +08:00
|
|
|
</command>
|
|
|
|
|
|
|
|
</client>
|
|
|
|
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
2021-03-13 00:38:26 +08:00
|
|
|
<file name="log/jar%TESTNUMBER.txt" mode="text">
|
2015-09-29 17:33:01 +08:00
|
|
|
# Netscape HTTP Cookie File
|
2020-11-04 21:02:01 +08:00
|
|
|
# https://curl.se/docs/http-cookies.html
|
2015-09-29 17:33:01 +08:00
|
|
|
# This file was generated by libcurl! Edit at your own risk.
|
|
|
|
|
2018-08-28 17:28:50 +08:00
|
|
|
.z-1.compute-1.amazonaws.com TRUE / FALSE 0 test5 forbidden5
|
2015-09-29 17:33:01 +08:00
|
|
|
.www.ck TRUE / FALSE 0 test4 allowed4
|
2018-04-09 06:10:20 +08:00
|
|
|
.www.example.ck TRUE / FALSE 0 test2 allowed2
|
2015-09-29 17:33:01 +08:00
|
|
|
</file>
|
|
|
|
</verify>
|
|
|
|
</testcase>
|