1<testcase> 2<info> 3<keywords> 4HTTP 5HTTP GET 6HTTP NTLM auth 7followlocation 8NTLM 9</keywords> 10</info> 11# Server-side 12<reply> 13 14<!-- no <data> in this test since we have NTLM from the start 15 16This is supposed to be returned when the server gets a first 17Authorization: NTLM line passed-in from the client --> 18 19<data1001> 20HTTP/1.1 401 Now gimme that second request of crap 21Server: Microsoft-IIS/5.0 22Content-Type: text/html; charset=iso-8859-1 23Content-Length: 34 24WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA== 25 26This is not the real page either! 27</data1001> 28 29# This is supposed to be returned when the server gets the second 30# Authorization: NTLM line passed-in from the client 31<data1002> 32HTTP/1.1 301 Things are fine in server land swsclose 33Server: Microsoft-IIS/5.0 34Connection: close 35Location: /you/%TESTNUMBER0010 36 37</data1002> 38 39# This is the first reply after the redirection 40<data1011> 41HTTP/1.1 401 Now gimme that second round of crap 42Server: Microsoft-IIS/5.0 43Content-Type: text/html; charset=iso-8859-1 44Content-Length: 34 45WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA== 46 47This is not the real page either! 48</data1011> 49 50# This is supposed to be returned when the server gets the second 51# Authorization: NTLM line passed-in from the client 52<data1012> 53HTTP/1.1 200 Things are fine in server land swsclose 54Server: Microsoft-IIS/5.0 55Content-Type: text/html; charset=iso-8859-1 56Content-Length: 32 57 58Finally, this is the real page! 59</data1012> 60 61<datacheck> 62HTTP/1.1 401 Now gimme that second request of crap 63Server: Microsoft-IIS/5.0 64Content-Type: text/html; charset=iso-8859-1 65Content-Length: 34 66WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA== 67 68HTTP/1.1 301 Things are fine in server land swsclose 69Server: Microsoft-IIS/5.0 70Connection: close 71Location: /you/%TESTNUMBER0010 72 73HTTP/1.1 401 Now gimme that second round of crap 74Server: Microsoft-IIS/5.0 75Content-Type: text/html; charset=iso-8859-1 76Content-Length: 34 77WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA== 78 79HTTP/1.1 200 Things are fine in server land swsclose 80Server: Microsoft-IIS/5.0 81Content-Type: text/html; charset=iso-8859-1 82Content-Length: 32 83 84Finally, this is the real page! 85</datacheck> 86 87</reply> 88 89# Client-side 90<client> 91<features> 92NTLM 93SSL 94!SSPI 95</features> 96<server> 97http 98</server> 99<name> 100HTTP with NTLM and follow-location 101</name> 102<command> 103http://%HOSTIP:%HTTPPORT/%TESTNUMBER -u testuser:testpass --ntlm -L 104</command> 105</client> 106 107# Verify data after the test has been "shot" 108<verify> 109<protocol> 110GET /%TESTNUMBER HTTP/1.1 111Host: %HOSTIP:%HTTPPORT 112Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA= 113User-Agent: curl/%VERSION 114Accept: */* 115 116GET /%TESTNUMBER HTTP/1.1 117Host: %HOSTIP:%HTTPPORT 118Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAALAAsAeAAAAAAAAAAAAAAAhoIBAFpkQwKRCZFMhjj0tw47wEjKHRHlvzfxQamFcheMuv8v+xeqphEO5V41xRd7R9deOXRlc3R1c2VyV09SS1NUQVRJT04= 119User-Agent: curl/%VERSION 120Accept: */* 121 122GET /you/%TESTNUMBER0010 HTTP/1.1 123Host: %HOSTIP:%HTTPPORT 124Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA= 125User-Agent: curl/%VERSION 126Accept: */* 127 128GET /you/%TESTNUMBER0010 HTTP/1.1 129Host: %HOSTIP:%HTTPPORT 130Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAALAAsAeAAAAAAAAAAAAAAAhoIBAFpkQwKRCZFMhjj0tw47wEjKHRHlvzfxQamFcheMuv8v+xeqphEO5V41xRd7R9deOXRlc3R1c2VyV09SS1NUQVRJT04= 131User-Agent: curl/%VERSION 132Accept: */* 133 134</protocol> 135</verify> 136</testcase> 137