]> rtime.felk.cvut.cz Git - hornmich/skoda-qr-demo.git/blob - QRScanner/mobile/jni/thirdparty/curl/tests/data/test154
Add MuPDF native source codes
[hornmich/skoda-qr-demo.git] / QRScanner / mobile / jni / thirdparty / curl / tests / data / test154
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP PUT
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 <datacheck>
41 HTTP/1.1 401 Authorization Required swsclose\r
42 Server: Apache/1.3.27 (Darwin) PHP/4.1.2\r
43 WWW-Authenticate: Blackmagic realm="gimme all yer s3cr3ts"\r
44 WWW-Authenticate: Basic realm="gimme all yer s3cr3ts"\r
45 WWW-Authenticate: Digest realm="gimme all yer s3cr3ts", nonce="11223344"\r
46 Content-Type: text/html; charset=iso-8859-1\r
47 Connection: close\r
48 \r
49 HTTP/1.1 200 OK swsclose\r
50 Server: Apache/1.3.27 (Darwin) PHP/4.1.2\r
51 Content-Type: text/html; charset=iso-8859-1\r
52 Content-Length: 23\r
53 Connection: close\r
54 \r
55 This IS the real page!
56 </datacheck>
57
58 </reply>
59
60 # Client-side
61 <client>
62 <server>
63 http
64 </server>
65 <features>
66 crypto
67 </features>
68  <name>
69 HTTP PUT with --anyauth authorization (picking Digest)
70  </name>
71  <command>
72 http://%HOSTIP:%HTTPPORT/154 -T log/put154 -u testuser:testpass --anyauth
73 </command>
74 <file name="log/put154">
75 This is data we upload with PUT
76 a second line
77 line three
78 four is the number of lines
79 </file>
80 </client>
81
82 # Verify data after the test has been "shot"
83 <verify>
84 <strip>
85 ^User-Agent:.*
86 </strip>
87 <protocol>
88 PUT /154 HTTP/1.1\r
89 Host: %HOSTIP:%HTTPPORT\r
90 Accept: */*\r
91 Content-Length: 85\r
92 Expect: 100-continue\r
93 \r
94 PUT /154 HTTP/1.1\r
95 Authorization: Digest username="testuser", realm="gimme all yer s3cr3ts", nonce="11223344", uri="/154", response="b71551e12d1c456e47d8388ecb2edeca"\r
96 User-Agent: curl/7.10.5 (i686-pc-linux-gnu) libcurl/7.10.5 OpenSSL/0.9.7a ipv6 zlib/1.1.3\r
97 Host: %HOSTIP:%HTTPPORT\r
98 Accept: */*\r
99 Content-Length: 85\r
100 Expect: 100-continue\r
101 \r
102 This is data we upload with PUT
103 a second line
104 line three
105 four is the number of lines
106 </protocol>
107 </verify>
108 </testcase>