xref: /curl/tests/data/test162 (revision 3fd80c7b)
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP GET
6HTTP proxy
7HTTP proxy NTLM auth
8FAILURE
9</keywords>
10</info>
11
12# Server-side
13<reply>
14<data1001 nocheck="yes">
15HTTP/1.0 407 BAD BOY
16Proxy-Authenticate: Basic realm="Squid proxy-caching web server"
17Server: swsclose
18Content-Type: text/html
19
20Even though it's the response code that triggers authentication, we're
21using NTLM and the server isn't, so we should fail.  We know the server
22isn't because there's no Proxy-Authorization: NTLM header
23</data1001>
24</reply>
25
26# Client-side
27<client>
28<features>
29NTLM
30SSL
31!SSPI
32proxy
33</features>
34<server>
35http
36</server>
37<name>
38HTTP GET asking for --proxy-ntlm when some other authentication is required
39</name>
40<command>
41http://%HOSTIP:%HTTPPORT/%TESTNUMBER --proxy http://%HOSTIP:%HTTPPORT --proxy-user foo:bar --proxy-ntlm --fail
42</command>
43</client>
44
45# Verify data after the test has been "shot"
46<verify>
47<protocol>
48GET http://%HOSTIP:%HTTPPORT/%TESTNUMBER HTTP/1.1
49Host: %HOSTIP:%HTTPPORT
50Proxy-Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
51User-Agent: curl/%VERSION
52Accept: */*
53Proxy-Connection: Keep-Alive
54
55</protocol>
56<errorcode>
5722
58</errorcode>
59</verify>
60</testcase>
61