1<testcase> 2<info> 3<keywords> 4HTTP 5HTTP GET 6HTTP CONNECT 7HTTP proxy 8HTTP proxy NTLM auth 9--proxy-anyauth 10NTLM 11</keywords> 12</info> 13# Server-side 14<reply> 15 16<connect> 17HTTP/1.1 407 Authorization Required to proxy me my dear swsclose 18Proxy-Authenticate: NTLM 19Content-Length: 16 20Connection: close 21 22data to discard 23</connect> 24 25# this is returned first since we get no proxy-auth 26<connect1001> 27HTTP/1.1 407 Authorization Required to proxy me my dear 28Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA== 29Content-Length: 28 30 3127 bytes and newline to ign 32</connect1001> 33 34# This is supposed to be returned when the server gets the second 35# Authorization: NTLM line passed-in from the client 36<connect1002> 37HTTP/1.1 200 Things are fine in proxy land 38Server: Microsoft-IIS/5.0 39Content-Type: text/html; charset=iso-8859-1 40 41</connect1002> 42 43# this is returned when we get a GET! 44<data2> 45HTTP/1.1 200 OK 46Date: Tue, 09 Nov 2010 14:49:00 GMT 47Content-Length: 7 48Connection: close 49Content-Type: text/html 50Funny-head: yesyes 51 52daniel 53</data2> 54 55# then this is returned when we get proxy-auth 56<data1000> 57HTTP/1.1 200 OK swsbounce 58Server: no 59 60Nice proxy auth sir! 61</data1000> 62 63<datacheck> 64HTTP/1.1 407 Authorization Required to proxy me my dear swsclose 65Proxy-Authenticate: NTLM 66Content-Length: 16 67Connection: close 68 69HTTP/1.1 407 Authorization Required to proxy me my dear 70Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA== 71Content-Length: 28 72 73HTTP/1.1 200 Things are fine in proxy land 74Server: Microsoft-IIS/5.0 75Content-Type: text/html; charset=iso-8859-1 76 77HTTP/1.1 200 OK 78Date: Tue, 09 Nov 2010 14:49:00 GMT 79Content-Length: 7 80Connection: close 81Content-Type: text/html 82Funny-head: yesyes 83 84daniel 85</datacheck> 86</reply> 87 88# Client-side 89<client> 90<server> 91http 92</server> 93<features> 94NTLM 95SSL 96!SSPI 97proxy 98</features> 99<name> 100HTTP proxy CONNECT with any proxyauth and proxy offers NTLM and close 101</name> 102<command> 103http://test.remote.example.com.%TESTNUMBER:%HTTPPORT/path/%TESTNUMBER0002 --proxy http://%HOSTIP:%HTTPPORT --proxy-user testuser:testpass --proxy-anyauth --proxytunnel 104</command> 105</client> 106 107# Verify data after the test has been "shot" 108<verify> 109<protocol> 110CONNECT test.remote.example.com.%TESTNUMBER:%HTTPPORT HTTP/1.1 111Host: test.remote.example.com.%TESTNUMBER:%HTTPPORT 112User-Agent: curl/%VERSION 113Proxy-Connection: Keep-Alive 114 115CONNECT test.remote.example.com.%TESTNUMBER:%HTTPPORT HTTP/1.1 116Host: test.remote.example.com.%TESTNUMBER:%HTTPPORT 117Proxy-Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA= 118User-Agent: curl/%VERSION 119Proxy-Connection: Keep-Alive 120 121CONNECT test.remote.example.com.%TESTNUMBER:%HTTPPORT HTTP/1.1 122Host: test.remote.example.com.%TESTNUMBER:%HTTPPORT 123Proxy-Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAALAAsAeAAAAAAAAAAAAAAAhoIBAFpkQwKRCZFMhjj0tw47wEjKHRHlvzfxQamFcheMuv8v+xeqphEO5V41xRd7R9deOXRlc3R1c2VyV09SS1NUQVRJT04= 124User-Agent: curl/%VERSION 125Proxy-Connection: Keep-Alive 126 127GET /path/%TESTNUMBER0002 HTTP/1.1 128Host: test.remote.example.com.%TESTNUMBER:%HTTPPORT 129User-Agent: curl/%VERSION 130Accept: */* 131 132</protocol> 133</verify> 134</testcase> 135