1<testcase> 2<info> 3<keywords> 4HTTP 5HTTP POST 6HTTP proxy 7HTTP proxy NTLM auth 8NTLM 9</keywords> 10</info> 11 12# Server-side 13<reply> 14 15# this is returned first since we get no proxy-auth 16<data1001> 17HTTP/1.1 407 Authorization Required to proxy me my dear 18Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA== 19Content-Length: 34 20 21Hey you, authenticate or go away! 22</data1001> 23 24# This is supposed to be returned when the server gets the second 25# Authorization: NTLM line passed-in from the client 26<data1002> 27HTTP/1.1 200 Things are fine in proxy land swsclose 28Server: Microsoft-IIS/5.0 29Content-Type: text/html; charset=iso-8859-1 30Content-Length: 42 31 32Contents of that page you requested, sir. 33</data1002> 34 35<datacheck> 36HTTP/1.1 407 Authorization Required to proxy me my dear 37Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA== 38Content-Length: 34 39 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</datacheck> 47</reply> 48 49# Client-side 50<client> 51<server> 52http 53</server> 54<features> 55NTLM 56SSL 57!SSPI 58proxy 59</features> 60<name> 61HTTP proxy-auth NTLM and then POST 62</name> 63<command> 64http://%HOSTIP:%HTTPPORT/%TESTNUMBER --proxy http://%HOSTIP:%HTTPPORT --proxy-user testuser:testpass --proxy-ntlm -d "postit" 65</command> 66</client> 67 68# Verify data after the test has been "shot" 69<verify> 70<protocol nonewline="yes"> 71POST http://%HOSTIP:%HTTPPORT/%TESTNUMBER HTTP/1.1 72Host: %HOSTIP:%HTTPPORT 73Proxy-Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA= 74User-Agent: curl/%VERSION 75Accept: */* 76Proxy-Connection: Keep-Alive 77Content-Length: 0 78Content-Type: application/x-www-form-urlencoded 79 80POST http://%HOSTIP:%HTTPPORT/%TESTNUMBER HTTP/1.1 81Host: %HOSTIP:%HTTPPORT 82Proxy-Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAALAAsAeAAAAAAAAAAAAAAAhoIBAFpkQwKRCZFMhjj0tw47wEjKHRHlvzfxQamFcheMuv8v+xeqphEO5V41xRd7R9deOXRlc3R1c2VyV09SS1NUQVRJT04= 83User-Agent: curl/%VERSION 84Accept: */* 85Proxy-Connection: Keep-Alive 86Content-Length: 6 87Content-Type: application/x-www-form-urlencoded 88 89postit 90</protocol> 91</verify> 92</testcase> 93