1<testcase> 2<info> 3<keywords> 4HTTP 5HTTP GET 6HTTP proxy 7HTTP proxy NTLM auth 8HTTP Digest auth 9NTLM 10</keywords> 11</info> 12 13# Server-side 14<reply> 15 16# this is returned first since we get no proxy-auth 17<data> 18HTTP/1.1 407 Authorization Required to proxy me my dear swsclose 19Proxy-Authenticate: NTLM 20 21And you should ignore this data. 22</data> 23 24# then this is returned since we get no server-auth 25<data1000> 26HTTP/1.1 200 Authorizated fine 27Content-Length: 27 28 29Welcome to the end station 30</data1000> 31 32<data1001> 33HTTP/1.1 407 NTLM type-1 received sending back type-2 34Server: Microsoft-IIS/5.0 35Content-Length: 34 36Content-Type: text/html; charset=iso-8859-1 37Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA== 38 39This is not the real page either! 40</data1001> 41 42# This is supposed to be returned when the server gets the second 43# Authorization: NTLM line passed-in from the client 44<data1002> 45HTTP/1.1 401 You now need to authenticate with the host 46Server: Microsoft-IIS/5.0 47WWW-Authenticate: Digest realm="r e a l m", nonce="abcdef" 48Content-Length: 46 49Content-Type: text/html; charset=iso-8859-1 50 51We have not authenticated with the server yet 52</data1002> 53 54<datacheck> 55HTTP/1.1 407 NTLM type-1 received sending back type-2 56Server: Microsoft-IIS/5.0 57Content-Length: 34 58Content-Type: text/html; charset=iso-8859-1 59Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA== 60 61HTTP/1.1 401 You now need to authenticate with the host 62Server: Microsoft-IIS/5.0 63WWW-Authenticate: Digest realm="r e a l m", nonce="abcdef" 64Content-Length: 46 65Content-Type: text/html; charset=iso-8859-1 66 67HTTP/1.1 200 Authorizated fine 68Content-Length: 27 69 70Welcome to the end station 71</datacheck> 72</reply> 73 74# Client-side 75<client> 76<server> 77http 78</server> 79<features> 80NTLM 81SSL 82!SSPI 83proxy 84</features> 85<name> 86HTTP with proxy-requiring-NTLM to site-requiring-Digest 87</name> 88<command> 89http://data.from.server.requiring.digest.hohoho.com/%TESTNUMBER --proxy http://%HOSTIP:%HTTPPORT --proxy-user testuser:testpass --proxy-ntlm --digest --user digest:alot 90</command> 91</client> 92 93# Verify data after the test has been "shot" 94<verify> 95<protocol> 96GET http://data.from.server.requiring.digest.hohoho.com/%TESTNUMBER HTTP/1.1 97Host: data.from.server.requiring.digest.hohoho.com 98Proxy-Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA= 99User-Agent: curl/%VERSION 100Accept: */* 101Proxy-Connection: Keep-Alive 102 103GET http://data.from.server.requiring.digest.hohoho.com/%TESTNUMBER HTTP/1.1 104Host: data.from.server.requiring.digest.hohoho.com 105Proxy-Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAALAAsAeAAAAAAAAAAAAAAAhoIBAFpkQwKRCZFMhjj0tw47wEjKHRHlvzfxQamFcheMuv8v+xeqphEO5V41xRd7R9deOXRlc3R1c2VyV09SS1NUQVRJT04= 106User-Agent: curl/%VERSION 107Accept: */* 108Proxy-Connection: Keep-Alive 109 110GET http://data.from.server.requiring.digest.hohoho.com/%TESTNUMBER HTTP/1.1 111Host: data.from.server.requiring.digest.hohoho.com 112Authorization: Digest username="digest", realm="r e a l m", nonce="abcdef", uri="/%TESTNUMBER", response="95d48591985a03c4b49cb962aa7bd3e6" 113User-Agent: curl/%VERSION 114Accept: */* 115Proxy-Connection: Keep-Alive 116 117</protocol> 118</verify> 119</testcase> 120