Debian Codegraph @

curl/tests/data/test61

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