12 HTTP/1.1 200 OK swsclose
13 Date: Thu, 09 Nov 2010 14:49:00 GMT
14 Server: test-server/fake
25 HTTP with cookie parsing from header file
28 http://%HOSTIP:%HTTPPORT/we/want/8 -b log/heads8.txt
31 # We create this file before the command is invoked!
32 <file name="log/heads8.txt">
34 Date: Thu, 09 Nov 2010 14:49:00 GMT
35 Server: test-server/fake
36 Content-Type: text/html
38 Set-Cookie: foobar=name; domain=%HOSTIP; path=/;
39 Set-Cookie: mismatch=this; domain=%HOSTIP; path="/silly/";
40 Set-Cookie: partmatch=present; domain=.0.0.1; path=/w;
41 Set-Cookie: duplicate=test; domain=.0.0.1; domain=.0.0.1; path=/donkey;
42 Set-Cookie: cookie=yes; path=/we;
43 Set-Cookie: cookie=perhaps; path=/we/want;
44 Set-Cookie: nocookie=yes; path=/WE;
45 Set-Cookie: blexp=yesyes; domain=.0.0.1; domain=.0.0.1; expiry=totally bad;
49 perl -e 'if ("%HOSTIP" !~ /\.0\.0\.1$/) {print "Test only works for HOSTIPs ending with .0.0.1"; exit(1)}'
53 # Verify data after the test has been "shot"
59 GET /we/want/8 HTTP/1.1
\r
60 Host: %HOSTIP:%HTTPPORT
\r
62 Cookie: cookie=perhaps; cookie=yes; foobar=name; blexp=yesyes
\r