2007-01-23 10:25:56 +08:00
|
|
|
<testcase>
|
2008-10-17 05:34:34 +08:00
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
HTTP
|
|
|
|
HTTP GET
|
|
|
|
HTTP proxy
|
|
|
|
HTTP proxy NTLM auth
|
|
|
|
FAILURE
|
|
|
|
</keywords>
|
|
|
|
</info>
|
|
|
|
|
2004-04-23 04:07:41 +08:00
|
|
|
# Server-side
|
|
|
|
<reply>
|
2009-01-08 05:57:26 +08:00
|
|
|
<data1001 nocheck="yes">
|
2004-04-23 04:07:41 +08: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 14:04:52 +08:00
|
|
|
<features>
|
2005-03-21 16:14:32 +08:00
|
|
|
NTLM
|
2019-12-30 04:23:25 +08:00
|
|
|
SSL
|
2013-12-29 04:22:22 +08:00
|
|
|
!SSPI
|
2019-10-15 04:29:19 +08:00
|
|
|
proxy
|
2004-04-23 14:04:52 +08:00
|
|
|
</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>
|
2021-03-13 00:38:26 +08:00
|
|
|
http://%HOSTIP:%HTTPPORT/%TESTNUMBER --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>
|
|
|
|
<protocol>
|
2021-03-13 00:38:26 +08:00
|
|
|
GET http://%HOSTIP:%HTTPPORT/%TESTNUMBER HTTP/1.1
|
2015-03-12 07:50:46 +08:00
|
|
|
Host: %HOSTIP:%HTTPPORT
|
2006-06-07 22:14:04 +08:00
|
|
|
Proxy-Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
|
2020-10-02 19:45:24 +08:00
|
|
|
User-Agent: curl/%VERSION
|
2004-04-23 04:07:41 +08:00
|
|
|
Accept: */*
|
2016-08-16 14:36:04 +08:00
|
|
|
Proxy-Connection: Keep-Alive
|
2004-04-23 04:07:41 +08:00
|
|
|
|
|
|
|
</protocol>
|
|
|
|
<errorcode>
|
|
|
|
22
|
|
|
|
</errorcode>
|
|
|
|
</verify>
|
2007-01-23 10:25:56 +08:00
|
|
|
</testcase>
|