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