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