]> rtime.felk.cvut.cz Git - hornmich/skoda-qr-demo.git/blob - QRScanner/mobile/jni/thirdparty/curl/tests/data/test162
Add MuPDF native source codes
[hornmich/skoda-qr-demo.git] / QRScanner / mobile / jni / thirdparty / curl / tests / data / test162
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 HTTP proxy
7 HTTP proxy NTLM auth
8 FAILURE
9 </keywords>
10 </info>
11
12 # Server-side
13 <reply>
14 <data1001 nocheck="yes">
15 HTTP/1.0 407 BAD BOY
16 Proxy-Authenticate: Basic realm="Squid proxy-caching web server"
17 Server: swsclose
18 Content-Type: text/html
19
20 Even though it's the response code that triggers authentication, we're
21 using NTLM and the server isn't, so we should fail.  We know the server
22 isn't because there's no Proxy-Authorization: NTLM header
23 </data1001>
24 </reply>
25
26 # Client-side
27 <client>
28 <features>
29 NTLM
30 </features>
31 <server>
32 http
33 </server>
34  <name>
35 HTTP GET asking for --proxy-ntlm when some other authentication is required
36  </name>
37  <command>
38 http://%HOSTIP:%HTTPPORT/162 --proxy http://%HOSTIP:%HTTPPORT --proxy-user foo:bar --proxy-ntlm --fail
39 </command>
40 </client>
41
42 # Verify data after the test has been "shot"
43 <verify>
44 <strip>
45 ^User-Agent: curl/.*
46 </strip>
47 <protocol>
48 GET http://%HOSTIP:%HTTPPORT/162 HTTP/1.1\r
49 Proxy-Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=\r
50 User-Agent: curl/7.8.1-pre3 (sparc-sun-solaris2.7) libcurl 7.8.1-pre3 (OpenSSL 0.9.6a) (krb4 enabled)\r
51 Host: %HOSTIP:%HTTPPORT\r
52 Accept: */*\r
53 Proxy-Connection: Keep-Alive\r
54 \r
55 </protocol>
56 <errorcode>
57 22
58 </errorcode>
59 </verify>
60 </testcase>