1<testcase> 2<info> 3<keywords> 4HTTP 5HTTP GET 6cookies 7cookiejar 8</keywords> 9</info> 10# Server-side 11<reply> 12<data> 13HTTP/1.1 200 OK 14Date: Thu, 09 Nov 2010 14:49:00 GMT 15Server: test-server/fake 16Content-Length: 4 17Content-Type: text/html 18Funny-head: yesyes 19Set-Cookie: foobar=name; domain=anything.com; path=/ ; secure 20Set-Cookie:ismatch=this ; domain=127.0.0.1; path=/silly/ 21Set-Cookie: partmatch=present; domain=127.0.0.1 ; path=/; 22Set-Cookie:eat=this; domain=moo.foo.moo; 23Set-Cookie: eat=this-too; domain=.foo.moo; 24Set-Cookie: nodomainnovalue 25Set-Cookie: nodomain=value; expires=Fri Feb 2 11:56:27 GMT 2035 26Set-Cookie: novalue; domain=reallysilly 27Set-Cookie: test=yes; domain=foo.com; expires=Sat Feb 2 11:56:27 GMT 2030 28Set-Cookie: test2=yes; domain=se; expires=Sat Feb 2 11:56:27 GMT 2030 29Set-Cookie: magic=yessir; path=/silly/; HttpOnly 30Set-Cookie: blexp=yesyes; domain=.0.0.1; domain=.0.0.1; expiry=totally bad; 31 32boo 33</data> 34</reply> 35 36# Client-side 37<client> 38<server> 39http 40</server> 41 <name> 42HTTP with weirdly formatted cookies and cookiejar storage 43 </name> 44# Explicitly set the time zone to a known good one, in case the user is 45# using one of the 'right' zones that take into account leap seconds 46# which causes the cookie expiry times to be different. 47<setenv> 48TZ=GMT 49</setenv> 50 <command> 51http://%HOSTIP:%HTTPPORT/we/want/31 -b none -c log/jar31.txt 52</command> 53</client> 54 55# Verify data after the test has been "shot" 56<verify> 57<strip> 58^User-Agent:.* 59</strip> 60<protocol> 61GET /we/want/31 HTTP/1.1 62Host: %HOSTIP:%HTTPPORT 63Accept: */* 64 65</protocol> 66<file name="log/jar31.txt" mode="text"> 67# Netscape HTTP Cookie File 68# http://curl.haxx.se/rfc/cookie_spec.html 69# This file was generated by libcurl! Edit at your own risk. 70 71.127.0.0.1 TRUE /silly/ FALSE 0 ismatch this 72.127.0.0.1 TRUE / FALSE 0 partmatch present 73127.0.0.1 FALSE /we/want/ FALSE 2054030187 nodomain value 74#HttpOnly_127.0.0.1 FALSE /silly/ FALSE 0 magic yessir 75.0.0.1 TRUE /we/want/ FALSE 0 blexp yesyes 76</file> 77</verify> 78</testcase> 79