16 HTTP/1.1 407 Authorization Required to proxy me my dear swsclose
17 Proxy-Authenticate: NTLM
24 # this is returned first since we get no proxy-auth
26 HTTP/1.1 407 Authorization Required to proxy me my dear
27 Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
30 And you should ignore this data.
33 # This is supposed to be returned when the server gets the second
34 # Authorization: NTLM line passed-in from the client
36 HTTP/1.1 200 Things are fine in proxy land
37 Server: Microsoft-IIS/5.0
38 Content-Type: text/html; charset=iso-8859-1
42 # this is returned when we get a GET!
45 Date: Thu, 09 Nov 2010 14:49:00 GMT
48 Content-Type: text/html
54 # then this is returned when we get proxy-auth
56 HTTP/1.1 200 OK swsbounce
63 HTTP/1.1 407 Authorization Required to proxy me my dear swsclose
64 Proxy-Authenticate: NTLM
68 HTTP/1.1 407 Authorization Required to proxy me my dear
69 Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
72 HTTP/1.1 200 Things are fine in proxy land
73 Server: Microsoft-IIS/5.0
74 Content-Type: text/html; charset=iso-8859-1
77 Date: Thu, 09 Nov 2010 14:49:00 GMT
80 Content-Type: text/html
96 HTTP proxy CONNECT with any proxyauth and proxy offers NTLM and close
99 http://test.remote.server.com:1021/path/10210002 --proxy http://%HOSTIP:%HTTPPORT --proxy-user silly:person --proxy-anyauth --proxytunnel
103 # Verify data after the test has been "shot"
108 # We strip off a large chunk of the type-2 NTLM message since it depends on
109 # the local host name and thus differs on different machines!
111 s/^(Proxy-Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAABQAFAHAAAAA).*/$1/
114 CONNECT test.remote.server.com:1021 HTTP/1.0
115 Host: test.remote.server.com:1021
116 Proxy-Connection: Keep-Alive
118 CONNECT test.remote.server.com:1021 HTTP/1.0
119 Host: test.remote.server.com:1021
120 Proxy-Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
121 Proxy-Connection: Keep-Alive
123 CONNECT test.remote.server.com:1021 HTTP/1.0
124 Host: test.remote.server.com:1021
125 Proxy-Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAABQAFAHAAAAA
126 Proxy-Connection: Keep-Alive
128 GET /path/10210002 HTTP/1.1
129 User-Agent: curl/7.12.3-CVS (i686-pc-linux-gnu) libcurl/7.12.3-CVS OpenSSL/0.9.6b zlib/1.1.4
130 Host: test.remote.server.com:1021