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