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