1<testcase> 2<info> 3# This test is a copy of test 67, modified to use an HTTP proxy. 4<keywords> 5HTTP 6HTTP GET 7HTTP NTLM auth 8HTTP proxy 9NTLM 10</keywords> 11</info> 12# Server-side 13<reply> 14 15<!-- no <data> in this test since we have NTLM from the start 16 17This is supposed to be returned when the server gets a first 18Authorization: NTLM line passed-in from the client --> 19 20<data1001> 21HTTP/1.1 401 Now gimme that second request of crap 22Server: Microsoft-IIS/5.0 23Content-Type: text/html; charset=iso-8859-1 24Content-Length: 34 25WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA== 26 27This is not the real page either! 28</data1001> 29 30# This is supposed to be returned when the server gets the second 31# Authorization: NTLM line passed-in from the client 32<data1002> 33HTTP/1.1 200 Things are fine in server land swsclose 34Server: Microsoft-IIS/5.0 35Content-Type: text/html; charset=iso-8859-1 36Content-Length: 32 37 38Finally, this is the real page! 39</data1002> 40 41<datacheck> 42HTTP/1.1 401 Now gimme that second request of crap 43Server: Microsoft-IIS/5.0 44Content-Type: text/html; charset=iso-8859-1 45Content-Length: 34 46WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA== 47 48HTTP/1.1 200 Things are fine in server land swsclose 49Server: Microsoft-IIS/5.0 50Content-Type: text/html; charset=iso-8859-1 51Content-Length: 32 52 53Finally, this is the real page! 54</datacheck> 55 56</reply> 57 58# Client-side 59<client> 60<features> 61NTLM 62SSL 63!SSPI 64proxy 65</features> 66<server> 67http 68</server> 69<name> 70HTTP with server NTLM authorization using a proxy 71</name> 72<command> 73http://%HOSTIP:%HTTPPORT/%TESTNUMBER -u testuser:testpass --ntlm --proxy http://%HOSTIP:%HTTPPORT 74</command> 75</client> 76 77# Verify data after the test has been "shot" 78<verify> 79<protocol> 80GET http://%HOSTIP:%HTTPPORT/%TESTNUMBER HTTP/1.1 81Host: %HOSTIP:%HTTPPORT 82Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA= 83User-Agent: curl/%VERSION 84Accept: */* 85Proxy-Connection: Keep-Alive 86 87GET http://%HOSTIP:%HTTPPORT/%TESTNUMBER HTTP/1.1 88Host: %HOSTIP:%HTTPPORT 89Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAALAAsAeAAAAAAAAAAAAAAAhoIBAFpkQwKRCZFMhjj0tw47wEjKHRHlvzfxQamFcheMuv8v+xeqphEO5V41xRd7R9deOXRlc3R1c2VyV09SS1NUQVRJT04= 90User-Agent: curl/%VERSION 91Accept: */* 92Proxy-Connection: Keep-Alive 93 94</protocol> 95</verify> 96</testcase> 97