]> rtime.felk.cvut.cz Git - hornmich/skoda-qr-demo.git/blob - QRScanner/mobile/jni/thirdparty/curl/tests/data/test61
Add MuPDF native source codes
[hornmich/skoda-qr-demo.git] / QRScanner / mobile / jni / thirdparty / curl / tests / data / test61
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 cookies
7 cookiejar
8 HTTP replaced headers
9 httponly
10 </keywords>
11 </info>
12 # Server-side
13 <reply>
14 <data>
15 HTTP/1.1 200 OK\r
16 Date: Thu, 09 Nov 2010 14:49:00 GMT\r
17 Server: test-server/fake\r
18 Content-Type: text/html\r
19 Funny-head: yesyes\r
20 Set-Cookie: test=yes; httponly; domain=foo.com; expires=Fri Feb 2 11:56:27 GMT 2035\r
21 SET-COOKIE: test2=yes; domain=host.foo.com; expires=Fri Feb 2 11:56:27 GMT 2035\r
22 Set-Cookie: test3=maybe; domain=foo.com; path=/moo; secure\r
23 Set-Cookie: test4=no; domain=nope.foo.com; path=/moo; secure\r
24 Set-Cookie: test5=name; domain=anything.com; path=/ ; secure\r
25 Set-Cookie: fake=fooledyou; domain=..com; path=/;\r
26 Content-Length: 4\r
27 \r
28 boo
29 </data>
30 </reply>
31
32 # Client-side
33 <client>
34 <server>
35 http
36 </server>
37  <name>
38 HTTP with various cookies and custom Host:
39  </name>
40 # Explicitly set the time zone to a known good one, in case the user is
41 # using one of the 'right' zones that take into account leap seconds
42 # which causes the cookie expiry times to be different.
43 <setenv>
44 TZ=GMT
45 </setenv>
46  <command>
47 http://%HOSTIP:%HTTPPORT/we/want/61 -c log/jar61.txt -H "Host: www.host.foo.com"
48 </command>
49 </client>
50
51 # Verify data after the test has been "shot"
52 <verify>
53 <strip>
54 ^User-Agent:.*
55 </strip>
56 <protocol>
57 GET /we/want/61 HTTP/1.1\r
58 Accept: */*\r
59 Host: www.host.foo.com\r
60 \r
61 </protocol>
62 <file name="log/jar61.txt" mode="text">
63 # Netscape HTTP Cookie File
64 # http://curl.haxx.se/docs/http-cookies.html
65 # This file was generated by libcurl! Edit at your own risk.
66
67 #HttpOnly_.foo.com      TRUE    /we/want/       FALSE   2054030187      test    yes
68 .host.foo.com   TRUE    /we/want/       FALSE   2054030187      test2   yes
69 .foo.com        TRUE    /moo    TRUE    0       test3   maybe
70 </file>
71 </verify>
72 </testcase>