Resync
[CMakeLuaTailorHgBridge.git] / CMakeLua / Utilities / cmcurl-7.19.0 / tests / data / test61
blob1ec0fef8733a93d4bad1be57f8c207a151a8553c
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 cookies
7 cookiejar
8 HTTP replaced headers
9 </keywords>
10 </info>
11 # Server-side
12 <reply>
13 <data>
14 HTTP/1.1 200 OK
15 Date: Thu, 09 Nov 2010 14:49:00 GMT
16 Server: test-server/fake
17 Content-Type: text/html
18 Funny-head: yesyes
19 Set-Cookie: test=yes; domain=foo.com; expires=Fri Feb 2 11:56:27 GMT 2035
20 Set-Cookie: test2=yes; domain=host.foo.com; expires=Fri Feb 2 11:56:27 GMT 2035
21 Set-Cookie: test3=maybe; domain=foo.com; path=/moo; secure
22 Set-Cookie: test4=no; domain=nope.foo.com; path=/moo; secure
23 Set-Cookie: test5=name; domain=anything.com; path=/ ; secure
24 Content-Length: 4
26 boo
27 </data>
28 </reply>
30 # Client-side
31 <client>
32 <server>
33 http
34 </server>
35  <name>
36 HTTP with various cookies and custom Host:
37  </name>
38 # Explicitly set the time zone to a known good one, in case the user is
39 # using one of the 'right' zones that take into account leap seconds
40 # which causes the cookie expiry times to be different.
41 <setenv>
42 TZ=GMT
43 </setenv>
44  <command>
45 http://%HOSTIP:%HTTPPORT/we/want/61 -c log/jar61.txt -H "Host: www.host.foo.com"
46 </command>
47 </client>
49 # Verify data after the test has been "shot"
50 <verify>
51 <strip>
52 ^User-Agent:.*
53 </strip>
54 <protocol>
55 GET /we/want/61 HTTP/1.1
56 Accept: */*
57 Host: www.host.foo.com
59 </protocol>
60 <file name="log/jar61.txt" mode="text">
61 # Netscape HTTP Cookie File
62 # http://curl.haxx.se/rfc/cookie_spec.html
63 # This file was generated by libcurl! Edit at your own risk.
65 .foo.com        TRUE    /we/want/       FALSE   2054030187      test    yes
66 .host.foo.com   TRUE    /we/want/       FALSE   2054030187      test2   yes
67 .foo.com        TRUE    /moo    TRUE    0       test3   maybe
68 </file>
69 </verify>
70 </testcase>