modified to work fine with the new persistant connection working test suite
[platform/upstream/curl.git] / tests / data / test61
1 # Server-side
2 <reply>
3 <data>
4 HTTP/1.1 200 OK\r
5 Date: Thu, 09 Nov 2010 14:49:00 GMT\r
6 Server: test-server/fake\r
7 Content-Type: text/html\r
8 Funny-head: yesyes\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
14 Content-Length: 4\r
15 \r
16 boo
17 </data>
18 </reply>
19
20 # Client-side
21 <client>
22 <server>
23 http
24 </server>
25  <name>
26 HTTP with various cookies and custom Host:
27  </name>
28  <command>
29 http://%HOSTIP:%HOSTPORT/we/want/61 -c log/jar61.txt -H "Host: www.host.foo.com"
30 </command>
31 </client>
32
33 # Verify data after the test has been "shot"
34 <verify>
35 <strip>
36 ^User-Agent:.*
37 </strip>
38 <protocol>
39 GET /we/want/61 HTTP/1.1\r
40 Pragma: no-cache\r
41 Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*\r
42 Host: www.host.foo.com\r
43 \r
44 </protocol>
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.
49
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
53 </file>
54 </verify>