5 Date: Thu, 09 Nov 2010 14:49:00 GMT
\r
6 Server: test-server/fake
\r
7 Content-Type: text/html
\r
9 Set-Cookie: test=yes; domain=foo.com; expires=Tue Feb 1 11:56:27 MET 2007
\r
10 Set-Cookie: test2=yes; domain=host.foo.com; expires=Tue Feb 1 11:56:27 MET 2007
\r
11 Set-Cookie: test3=maybe; domain=foo.com; path=/moo; secure
\r
12 Set-Cookie: test4=no; domain=nope.foo.com; path=/moo; secure
\r
13 Set-Cookie: test5=name; domain=anything.com; path=/ ; secure
\r
26 HTTP with various cookies and custom Host:
29 http://%HOSTIP:%HOSTPORT/we/want/61 -c log/jar61.txt -H "Host: www.host.foo.com"
33 # Verify data after the test has been "shot"
39 GET /we/want/61 HTTP/1.1
\r
41 Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
\r
42 Host: www.host.foo.com
\r
45 <file name="log/jar61.txt">
46 # Netscape HTTP Cookie File
47 # http://www.netscape.com/newsref/std/cookie_spec.html
48 # This file was generated by libcurl! Edit at your own risk.
50 .foo.com TRUE /we/want/ FALSE 1170327387 test yes
51 .host.foo.com TRUE /we/want/ FALSE 1170327387 test2 yes
52 .foo.com TRUE /moo TRUE 0 test3 maybe