]> rtime.felk.cvut.cz Git - hornmich/skoda-qr-demo.git/blob - QRScanner/mobile/jni/thirdparty/curl/tests/data/test1412
Add MuPDF native source codes
[hornmich/skoda-qr-demo.git] / QRScanner / mobile / jni / thirdparty / curl / tests / data / test1412
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 HTTP Digest auth
7 --anyauth
8 </keywords>
9 </info>
10
11 # Server-side
12 <reply>
13 <servercmd>
14 auth_required
15 </servercmd>
16 <data>
17 HTTP/1.1 401 Authorization Required swsclose\r
18 Server: Apache/1.3.27 (Darwin) PHP/4.1.2\r
19 WWW-Authenticate: Blackmagic realm="gimme all yer s3cr3ts"\r
20 WWW-Authenticate: Basic realm="gimme all yer s3cr3ts"\r
21 WWW-Authenticate: Digest realm="gimme all yer s3cr3ts", nonce="11223344"\r
22 Content-Type: text/html; charset=iso-8859-1\r
23 Connection: close\r
24 \r
25 This is not the real page
26 </data>
27
28 # This is supposed to be returned when the server gets a
29 # Authorization: Digest line passed-in from the client
30 <data1000>
31 HTTP/1.1 200 OK swsclose\r
32 Server: Apache/1.3.27 (Darwin) PHP/4.1.2\r
33 Content-Type: text/html; charset=iso-8859-1\r
34 Content-Length: 23\r
35 Connection: close\r
36 \r
37 This IS the real page!
38 </data1000>
39
40 # This is the second request
41 <data1001>
42 HTTP/1.1 200 OK swsclose\r
43 Server: Apache/1.3.27 (Darwin) PHP/4.1.2\r
44 Content-Type: text/html; charset=iso-8859-1\r
45 Content-Length: 23\r
46 Connection: close\r
47 \r
48 This IS the second real page!
49 </data1001>
50
51 <datacheck>
52 HTTP/1.1 401 Authorization Required swsclose\r
53 Server: Apache/1.3.27 (Darwin) PHP/4.1.2\r
54 WWW-Authenticate: Blackmagic realm="gimme all yer s3cr3ts"\r
55 WWW-Authenticate: Basic realm="gimme all yer s3cr3ts"\r
56 WWW-Authenticate: Digest realm="gimme all yer s3cr3ts", nonce="11223344"\r
57 Content-Type: text/html; charset=iso-8859-1\r
58 Connection: close\r
59 \r
60 HTTP/1.1 200 OK swsclose\r
61 Server: Apache/1.3.27 (Darwin) PHP/4.1.2\r
62 Content-Type: text/html; charset=iso-8859-1\r
63 Content-Length: 23\r
64 Connection: close\r
65 \r
66 This IS the real page!
67 </datacheck>
68
69 </reply>
70
71 # Client-side
72 <client>
73 <server>
74 http
75 </server>
76 <features>
77 crypto
78 </features>
79  <name>
80 HTTP GET with --anyauth with two URLs (picking Digest) 
81  </name>
82  <command>
83 http://%HOSTIP:%HTTPPORT/1412 -u testuser:testpass --anyauth http://%HOSTIP:%HTTPPORT/14120001
84 </command>
85 <file name="log/put1412">
86 This is data we upload with PUT
87 a second line
88 line three
89 four is the number of lines
90 </file>
91 </client>
92
93 # Verify data after the test has been "shot"
94 <verify>
95 <strip>
96 ^User-Agent:.*
97 </strip>
98 <protocol>
99 GET /1412 HTTP/1.1\r
100 Host: %HOSTIP:%HTTPPORT\r
101 Accept: */*\r
102 \r
103 GET /1412 HTTP/1.1\r
104 Authorization: Digest username="testuser", realm="gimme all yer s3cr3ts", nonce="11223344", uri="/1412", response="0390dbe89e31adca0413d11f91f30e7f"\r
105 User-Agent: curl/7.10.5 (i686-pc-linux-gnu) libcurl/7.10.5 OpenSSL/0.9.7a ipv6 zlib/1.1.3\r
106 Host: %HOSTIP:%HTTPPORT\r
107 Accept: */*\r
108 \r
109 GET /14120001 HTTP/1.1\r
110 Authorization: Digest username="testuser", realm="gimme all yer s3cr3ts", nonce="11223344", uri="/14120001", response="0085df91870374c8bf4e94415e7fbf8e"\r
111 User-Agent: curl/7.10.5 (i686-pc-linux-gnu) libcurl/7.10.5 OpenSSL/0.9.7a ipv6 zlib/1.1.3\r
112 Host: %HOSTIP:%HTTPPORT\r
113 Accept: */*\r
114 \r
115 </protocol>
116 </verify>
117 </testcase>