2004-04-22 16:07:41 -04:00
|
|
|
# Server-side
|
|
|
|
<reply>
|
|
|
|
<data1001 nocheck=1>
|
|
|
|
HTTP/1.0 407 BAD BOY
|
|
|
|
Proxy-Authenticate: Basic realm="Squid proxy-caching web server"
|
|
|
|
Server: swsclose
|
|
|
|
Content-Type: text/html
|
|
|
|
|
|
|
|
Even though it's the response code that triggers authentication, we're
|
|
|
|
using NTLM and the server isn't, so we should fail. We know the server
|
|
|
|
isn't because there's no Proxy-Authorization: NTLM header
|
|
|
|
</data1001>
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
# Client-side
|
|
|
|
<client>
|
2004-04-23 02:04:52 -04:00
|
|
|
<features>
|
2005-03-21 03:14:32 -05:00
|
|
|
NTLM
|
2004-04-23 02:04:52 -04:00
|
|
|
</features>
|
2004-04-22 16:07:41 -04:00
|
|
|
<server>
|
|
|
|
http
|
|
|
|
</server>
|
|
|
|
<name>
|
|
|
|
HTTP GET asking for --proxy-ntlm when some other authentication is required
|
|
|
|
</name>
|
|
|
|
<command>
|
2004-09-08 04:08:38 -04:00
|
|
|
http://%HOSTIP:%HTTPPORT/162 --proxy http://%HOSTIP:%HTTPPORT --proxy-user foo:bar --proxy-ntlm --fail
|
2004-04-22 16:07:41 -04:00
|
|
|
</command>
|
2005-01-25 16:45:03 -05:00
|
|
|
</client>
|
2004-04-22 16:07:41 -04:00
|
|
|
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
|
|
|
<strip>
|
|
|
|
^User-Agent: curl/.*
|
|
|
|
</strip>
|
|
|
|
<protocol>
|
2004-09-08 04:08:38 -04:00
|
|
|
GET http://127.0.0.1:%HTTPPORT/162 HTTP/1.1
|
2006-04-05 08:35:48 -04:00
|
|
|
Proxy-Authorization: NTLM TlRMTVNTUAABAAAABoIAAAAAAAAAAAAAAAAAAAAAAAA=
|
2004-04-22 16:07:41 -04:00
|
|
|
User-Agent: curl/7.8.1-pre3 (sparc-sun-solaris2.7) libcurl 7.8.1-pre3 (OpenSSL 0.9.6a) (krb4 enabled)
|
2004-09-08 04:08:38 -04:00
|
|
|
Host: 127.0.0.1:%HTTPPORT
|
2004-04-22 16:07:41 -04:00
|
|
|
Pragma: no-cache
|
|
|
|
Accept: */*
|
2005-05-11 05:52:59 -04:00
|
|
|
Proxy-Connection: Keep-Alive
|
2004-04-22 16:07:41 -04:00
|
|
|
|
|
|
|
</protocol>
|
|
|
|
<errorcode>
|
|
|
|
22
|
|
|
|
</errorcode>
|
|
|
|
</verify>
|