Resync
[CMakeLuaTailorHgBridge.git] / CMakeLua / Utilities / cmcurl-7.19.0 / tests / data / test62
blob1990b91705fbb5afcaf7af4648fa016c0bf3b41a
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 HTTP replaced headers
7 cookies
8 </keywords>
9 </info>
11 # Server-side
12 <reply>
13 <data>
14 HTTP/1.0 200 OK swsclose
15 Date: Thu, 09 Nov 2010 14:49:00 GMT
16 Content-Type: text/html
18 boo
19 </data>
20 </reply>
22 # Client-side
23 <client>
24 <server>
25 http
26 </server>
27  <name>
28 HTTP, send cookies when using custom Host:
29  </name>
30  <command>
31 http://%HOSTIP:%HTTPPORT/we/want/62 -b log/jar62.txt -H "Host: www.host.foo.com"
32 </command>
33 <file name="log/jar62.txt">
34 # Netscape HTTP Cookie File
35 # http://curl.haxx.se/rfc/cookie_spec.html
36 # This file was generated by libcurl! Edit at your own risk.
38 .foo.com        TRUE    /we/want/       FALSE   2054030187      test    yes
39 .host.foo.com   TRUE    /we/want/       FALSE   2054030187      test2   yes
40 .fake.host.foo.com      TRUE    /we/want/       FALSE   2054030187      test4   yes
42 .foo.com        TRUE    /moo    TRUE    0       test3   maybe
43 </file>
44 </client>
46 # Verify data after the test has been "shot"
47 <verify>
48 <strip>
49 ^User-Agent:.*
50 </strip>
51 <protocol>
52 GET /we/want/62 HTTP/1.1
53 Accept: */*
54 Cookie: test2=yes; test=yes
55 Host: www.host.foo.com
57 </protocol>
58 </verify>
59 </testcase>