| 1 |
# Server-side |
| 2 |
<reply> |
| 3 |
<data1001 nocheck=1> |
| 4 |
HTTP/1.0 407 BAD BOY |
| 5 |
Proxy-Authenticate: Basic realm="Squid proxy-caching web server" |
| 6 |
Server: swsclose |
| 7 |
Content-Type: text/html |
| 8 |
|
| 9 |
Even though it's the response code that triggers authentication, we're |
| 10 |
using NTLM and the server isn't, so we should fail. We know the server |
| 11 |
isn't because there's no Proxy-Authorization: NTLM header |
| 12 |
</data1001> |
| 13 |
</reply> |
| 14 |
|
| 15 |
# Client-side |
| 16 |
<client> |
| 17 |
<features> |
| 18 |
NTLM |
| 19 |
</features> |
| 20 |
<server> |
| 21 |
http |
| 22 |
</server> |
| 23 |
<name> |
| 24 |
HTTP GET asking for --proxy-ntlm when some other authentication is required |
| 25 |
</name> |
| 26 |
<command> |
| 27 |
http://%HOSTIP:%HTTPPORT/162 --proxy http://%HOSTIP:%HTTPPORT --proxy-user foo:bar --proxy-ntlm --fail |
| 28 |
</command> |
| 29 |
</client> |
| 30 |
|
| 31 |
# Verify data after the test has been "shot" |
| 32 |
<verify> |
| 33 |
<strip> |
| 34 |
^User-Agent: curl/.* |
| 35 |
</strip> |
| 36 |
<protocol> |
| 37 |
GET http://127.0.0.1:%HTTPPORT/162 HTTP/1.1 |
| 38 |
Proxy-Authorization: NTLM TlRMTVNTUAABAAAAAgIAAAAAAAAgAAAAAAAAACAAAAA= |
| 39 |
User-Agent: curl/7.8.1-pre3 (sparc-sun-solaris2.7) libcurl 7.8.1-pre3 (OpenSSL 0.9.6a) (krb4 enabled) |
| 40 |
Host: 127.0.0.1:%HTTPPORT |
| 41 |
Pragma: no-cache |
| 42 |
Accept: */* |
| 43 |
Proxy-Connection: Keep-Alive |
| 44 |
|
| 45 |
</protocol> |
| 46 |
<errorcode> |
| 47 |
22 |
| 48 |
</errorcode> |
| 49 |
</verify> |