]> rtime.felk.cvut.cz Git - hornmich/skoda-qr-demo.git/blob - QRScanner/mobile/jni/thirdparty/curl/tests/data/test1072
Add MuPDF native source codes
[hornmich/skoda-qr-demo.git] / QRScanner / mobile / jni / thirdparty / curl / tests / data / test1072
1 <testcase>
2 # Authorization is used to force curl to realize that the server is
3 # speaking HTTP 1.0. The request is impossible to satisfy with HTTP 1.0
4 # because chunked encoding is unavailable, so the request must fail.
5 <info>
6 <keywords>
7 HTTP
8 HTTP PUT
9 HTTP Digest auth
10 --anyauth
11 HTTP/1.0
12 chunked Transfer-Encoding
13 </keywords>
14 </info>
15
16 # Server-side
17 <reply>
18 <data>
19 HTTP/1.0 401 Authorization Required swsclose\r
20 Server: testcurl\r
21 WWW-Authenticate: Blackmagic realm="gimme all yer s3cr3ts"\r
22 WWW-Authenticate: Basic realm="gimme all yer s3cr3ts"\r
23 WWW-Authenticate: Digest realm="gimme all yer s3cr3ts", nonce="11223344"\r
24 Content-Type: text/plain\r
25 Content-Length: 0\r
26 Connection: close\r
27 \r
28 </data>
29 </reply>
30
31 # Client-side
32 <client>
33 <server>
34 http
35 </server>
36 <features>
37 crypto
38 </features>
39  <name>
40 HTTP chunked PUT to HTTP 1.0 server with authorization
41  </name>
42  <command>
43 http://%HOSTIP:%HTTPPORT/1072 -T - -u testuser:testpass --anyauth
44 </command>
45 <stdin>
46 This is data we upload with PUT
47 it comes from stdin so MUST be sent
48 with chunked encoding
49 which is impossible in HTTP/1.0
50 </stdin>
51 </client>
52
53 # Verify data after the test has been "shot"
54 <verify>
55 <errorcode>
56 25
57 </errorcode>
58 <strip>
59 ^User-Agent:.*
60 </strip>
61 <protocol>
62 PUT /1072 HTTP/1.1\r
63 Host: %HOSTIP:%HTTPPORT\r
64 Accept: */*\r
65 Transfer-Encoding: chunked\r
66 Expect: 100-continue\r
67 \r
68 7a\r
69 This is data we upload with PUT
70 it comes from stdin so MUST be sent
71 with chunked encoding
72 which is impossible in HTTP/1.0
73 \r
74 0\r
75 \r
76 </protocol>
77 </verify>
78 </testcase>