15 Date: Thu, 09 Nov 2010 14:49:00 GMT
16 Server: test-server/fake
17 Content-Type: text/html
18 Funny-head: yesyes swsclose
19 Set-Cookie: foobar=name;
20 Set-Cookie: mismatch=this; domain=127.0.0.1; path="/silly/";
21 Set-Cookie: partmatch=present; domain=.0.0.1; path=/;
32 HTTP with cookie parser and header recording
35 "http://%HOSTIP:%HTTPPORT/we/want/1105?parm1=this*that/other/thing&parm2=foobar/1105" -c log/cookie1105.txt -d "userid=myname&password=mypassword"
38 perl -e 'if ("%HOSTIP" !~ /127\.0\.0\.1$/) {print "Test only works for HOSTIP 127.0.0.1"; exit(1)}'
42 # Verify data after the test has been "shot"
47 <protocol nonewline="yes">
48 POST /we/want/1105?parm1=this*that/other/thing&parm2=foobar/1105 HTTP/1.1
\r
49 Host: %HOSTIP:%HTTPPORT
\r
52 Content-Type: application/x-www-form-urlencoded
\r
54 userid=myname&password=mypassword
56 <file name="log/cookie1105.txt" mode="text">
57 # Netscape HTTP Cookie File
58 # http://curl.haxx.se/docs/http-cookies.html
59 # This file was generated by libcurl! Edit at your own risk.
61 127.0.0.1 FALSE /we/want/ FALSE 0 foobar name
62 .127.0.0.1 TRUE "/silly/" FALSE 0 mismatch this
63 .0.0.1 TRUE / FALSE 0 partmatch present