Debian Codegraph @

curl/tests/data/test62

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