]> rtime.felk.cvut.cz Git - hornmich/skoda-qr-demo.git/blob - QRScanner/mobile/jni/thirdparty/curl/tests/data/test152
Add MuPDF native source codes
[hornmich/skoda-qr-demo.git] / QRScanner / mobile / jni / thirdparty / curl / tests / data / test152
1 <testcase>
2 # Server-side
3 <reply>
4 <data nocheck="yes">
5 HTTP/1.0 401 BAD BOY
6 Server: swsclose
7 Content-Type: text/html
8
9 This contains a response code >= 400, so curl shouldn't display this.  Even
10 though it's a response code that triggers authentication, we're not using
11 authentication so we should still fail.
12 </data>
13 </reply>
14
15 # Client-side
16 <client>
17 <server>
18 http
19 </server>
20  <name>
21 HTTP GET with an error code that might trick authentication and --fail
22  </name>
23  <command>
24 http://%HOSTIP:%HTTPPORT/152 --fail
25 </command>
26 </client>
27
28 # Verify data after the test has been "shot"
29 <verify>
30 <strip>
31 ^User-Agent: curl/.*
32 </strip>
33 <protocol>
34 GET /152 HTTP/1.1\r
35 User-Agent: curl/7.8.1-pre3 (sparc-sun-solaris2.7) libcurl 7.8.1-pre3 (OpenSSL 0.9.6a) (krb4 enabled)\r
36 Host: %HOSTIP:%HTTPPORT\r
37 Accept: */*\r
38 \r
39 </protocol>
40 <errorcode>
41 22
42 </errorcode>
43 </verify>
44 </testcase>