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