Debian Codegraph @

curl/tests/data/test31

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