2004-04-23 04:07:41 +08: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 14:04:52 +08:00
|
|
|
# NTLM only works if SSL-support is present
|
|
|
|
<features>
|
|
|
|
SSL
|
|
|
|
</features>
|
2004-04-23 04:07:41 +08:00
|
|
|
<server>
|
|
|
|
http
|
|
|
|
</server>
|
|
|
|
<name>
|
|
|
|
HTTP GET asking for --proxy-ntlm when some other authentication is required
|
|
|
|
</name>
|
|
|
|
<command>
|
2004-09-08 16:08:38 +08:00
|
|
|
http://%HOSTIP:%HTTPPORT/162 --proxy http://%HOSTIP:%HTTPPORT --proxy-user foo:bar --proxy-ntlm --fail
|
2004-04-23 04:07:41 +08:00
|
|
|
</command>
|
2005-01-26 05:45:03 +08:00
|
|
|
</client>
|
2004-04-23 04:07:41 +08:00
|
|
|
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
|
|
|
<strip>
|
|
|
|
^User-Agent: curl/.*
|
|
|
|
</strip>
|
|
|
|
<protocol>
|
2004-09-08 16:08:38 +08:00
|
|
|
GET http://127.0.0.1:%HTTPPORT/162 HTTP/1.1
|
2004-11-29 20:01:07 +08:00
|
|
|
Proxy-Authorization: NTLM TlRMTVNTUAABAAAAAgIAAAAAAAAgAAAAAAAAACAAAAA=
|
2004-04-23 04:07:41 +08: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 16:08:38 +08:00
|
|
|
Host: 127.0.0.1:%HTTPPORT
|
2004-04-23 04:07:41 +08:00
|
|
|
Pragma: no-cache
|
|
|
|
Accept: */*
|
|
|
|
|
|
|
|
</protocol>
|
|
|
|
<errorcode>
|
|
|
|
22
|
|
|
|
</errorcode>
|
|
|
|
</verify>
|