16 HTTP/1.1 407 Authorization Required to proxy me my dear swsclose
\r
17 Proxy-Authenticate: NTLM
\r
24 # this is returned first since we get no proxy-auth
26 HTTP/1.1 407 Authorization Required to proxy me my dear
\r
27 Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
\r
30 And you should ignore this data.
\r
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
\r
37 Server: Microsoft-IIS/5.0
\r
38 Content-Type: text/html; charset=iso-8859-1
\r
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
\r
63 HTTP/1.1 407 Authorization Required to proxy me my dear swsclose
\r
64 Proxy-Authenticate: NTLM
\r
68 HTTP/1.1 407 Authorization Required to proxy me my dear
\r
69 Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
\r
72 HTTP/1.1 200 Things are fine in proxy land
\r
73 Server: Microsoft-IIS/5.0
\r
74 Content-Type: text/html; charset=iso-8859-1
\r
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
\r
115 Host: test.remote.server.com:1021
\r
116 Proxy-Connection: Keep-Alive
\r
118 CONNECT test.remote.server.com:1021 HTTP/1.0
\r
119 Host: test.remote.server.com:1021
\r
120 Proxy-Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
\r
121 Proxy-Connection: Keep-Alive
\r
123 CONNECT test.remote.server.com:1021 HTTP/1.0
\r
124 Host: test.remote.server.com:1021
\r
125 Proxy-Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAABQAFAHAAAAA
126 Proxy-Connection: Keep-Alive
\r
128 GET /path/10210002 HTTP/1.1
\r
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
\r
130 Host: test.remote.server.com:1021
\r