Resync
[CMakeLuaTailorHgBridge.git] / CMakeLua / Utilities / cmcurl-7.19.0 / tests / data / test162
blob512baef2a4fbe8ea7bc8854f11e466b6de02637c
1 <testcase>
2 # Server-side
3 <reply>
4 <data1001 nocheck="1">
5 HTTP/1.0 407 BAD BOY
6 Proxy-Authenticate: Basic realm="Squid proxy-caching web server"
7 Server: swsclose
8 Content-Type: text/html
10 Even though it's the response code that triggers authentication, we're
11 using NTLM and the server isn't, so we should fail.  We know the server
12 isn't because there's no Proxy-Authorization: NTLM header
13 </data1001>
14 </reply>
16 # Client-side
17 <client>
18 <features>
19 NTLM
20 </features>
21 <server>
22 http
23 </server>
24  <name>
25 HTTP GET asking for --proxy-ntlm when some other authentication is required
26  </name>
27  <command>
28 http://%HOSTIP:%HTTPPORT/162 --proxy http://%HOSTIP:%HTTPPORT --proxy-user foo:bar --proxy-ntlm --fail
29 </command>
30 </client>
32 # Verify data after the test has been "shot"
33 <verify>
34 <strip>
35 ^User-Agent: curl/.*
36 </strip>
37 <protocol>
38 GET http://%HOSTIP:%HTTPPORT/162 HTTP/1.1
39 Proxy-Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
40 User-Agent: curl/7.8.1-pre3 (sparc-sun-solaris2.7) libcurl 7.8.1-pre3 (OpenSSL 0.9.6a) (krb4 enabled)
41 Host: %HOSTIP:%HTTPPORT
42 Pragma: no-cache
43 Accept: */*
44 Proxy-Connection: Keep-Alive
46 </protocol>
47 <errorcode>
49 </errorcode>
50 </verify>
51 </testcase>