2007-01-22 21:25:56 -05:00
|
|
|
<testcase>
|
2008-10-16 17:34:34 -04:00
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
HTTP
|
|
|
|
HTTP GET
|
|
|
|
HTTP proxy
|
|
|
|
HTTP proxy NTLM auth
|
|
|
|
FAILURE
|
|
|
|
</keywords>
|
|
|
|
</info>
|
|
|
|
|
2004-04-22 16:07:41 -04:00
|
|
|
# Server-side
|
|
|
|
<reply>
|
2009-01-07 16:57:26 -05:00
|
|
|
<data1001 nocheck="yes">
|
2004-04-22 16:07:41 -04:00
|
|
|
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>
|
2007-09-14 15:32:31 -04:00
|
|
|
GET http://%HOSTIP:%HTTPPORT/162 HTTP/1.1
|
2006-06-07 10:14:04 -04:00
|
|
|
Proxy-Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
|
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)
|
2007-09-14 15:32:31 -04:00
|
|
|
Host: %HOSTIP:%HTTPPORT
|
2004-04-22 16:07:41 -04:00
|
|
|
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>
|
2007-01-22 21:25:56 -05:00
|
|
|
</testcase>
|