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