1<testcase> 2<info> 3<keywords> 4HTTP 5HTTP GET 6HTTP proxy 7HTTP proxy NTLM auth 8--proxy-anyauth 9NTLM 10</keywords> 11</info> 12 13# Server-side 14<reply> 15 16<data> 17HTTP/1.1 407 Authorization Required swsclose 18Server: Apache/1.3.27 (Darwin) PHP/4.1.2 19Proxy-Authenticate: Blackmagic realm="gimme all yer s3cr3ts" 20Proxy-Authenticate: Basic realm="gimme all yer s3cr3ts" 21Proxy-Authenticate: NTLM 22Content-Type: text/html; charset=iso-8859-1 23Connection: close 24 25This is not the real page 26</data> 27 28# this is returned first since we get no proxy-auth 29<data1001> 30HTTP/1.1 407 Authorization Required to proxy me my dear 31Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA== 32Content-Length: 34 33 34Hey you, authenticate or go away! 35</data1001> 36 37# This is supposed to be returned when the server gets the second 38# Authorization: NTLM line passed-in from the client 39<data1002> 40HTTP/1.1 200 Things are fine in proxy land swsclose 41Server: Microsoft-IIS/5.0 42Content-Type: text/html; charset=iso-8859-1 43Content-Length: 42 44 45Contents of that page you requested, sir. 46</data1002> 47 48<datacheck> 49HTTP/1.1 407 Authorization Required swsclose 50Server: Apache/1.3.27 (Darwin) PHP/4.1.2 51Proxy-Authenticate: Blackmagic realm="gimme all yer s3cr3ts" 52Proxy-Authenticate: Basic realm="gimme all yer s3cr3ts" 53Proxy-Authenticate: NTLM 54Content-Type: text/html; charset=iso-8859-1 55Connection: close 56 57HTTP/1.1 407 Authorization Required to proxy me my dear 58Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA== 59Content-Length: 34 60 61HTTP/1.1 200 Things are fine in proxy land swsclose 62Server: Microsoft-IIS/5.0 63Content-Type: text/html; charset=iso-8859-1 64Content-Length: 42 65 66Contents of that page you requested, sir. 67</datacheck> 68</reply> 69 70# Client-side 71<client> 72<server> 73http 74</server> 75<features> 76NTLM 77SSL 78!SSPI 79proxy 80</features> 81<name> 82HTTP POST with --proxy-anyauth, picking NTLM 83</name> 84<command> 85http://%HOSTIP:%HTTPPORT/%TESTNUMBER --proxy http://%HOSTIP:%HTTPPORT --proxy-user testuser:testpass --proxy-anyauth -d "postit" 86</command> 87</client> 88 89# Verify data after the test has been "shot" 90<verify> 91<protocol nonewline="yes"> 92POST http://%HOSTIP:%HTTPPORT/%TESTNUMBER HTTP/1.1 93Host: %HOSTIP:%HTTPPORT 94User-Agent: curl/%VERSION 95Accept: */* 96Proxy-Connection: Keep-Alive 97Content-Length: 6 98Content-Type: application/x-www-form-urlencoded 99 100postitPOST http://%HOSTIP:%HTTPPORT/%TESTNUMBER HTTP/1.1 101Host: %HOSTIP:%HTTPPORT 102Proxy-Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA= 103User-Agent: curl/%VERSION 104Accept: */* 105Proxy-Connection: Keep-Alive 106Content-Length: 0 107Content-Type: application/x-www-form-urlencoded 108 109POST http://%HOSTIP:%HTTPPORT/%TESTNUMBER HTTP/1.1 110Host: %HOSTIP:%HTTPPORT 111Proxy-Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAALAAsAeAAAAAAAAAAAAAAAhoIBAFpkQwKRCZFMhjj0tw47wEjKHRHlvzfxQamFcheMuv8v+xeqphEO5V41xRd7R9deOXRlc3R1c2VyV09SS1NUQVRJT04= 112User-Agent: curl/%VERSION 113Accept: */* 114Proxy-Connection: Keep-Alive 115Content-Length: 6 116Content-Type: application/x-www-form-urlencoded 117 118postit 119</protocol> 120</verify> 121</testcase> 122