15 # this is returned first since we get no proxy-auth
17 HTTP/1.1 407 Authorization Required to proxy me my dear
18 Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
20 And you should ignore this data.
23 # This is supposed to be returned when the server gets the second
24 # Authorization: NTLM line passed-in from the client
26 HTTP/1.1 200 Things are fine in proxy land
27 Server: Microsoft-IIS/5.0
28 Content-Type: text/html; charset=iso-8859-1
32 # this is returned when we get a GET!
35 Date: Thu, 09 Nov 2010 14:49:00 GMT
38 Content-Type: text/html
44 # then this is returned when we get proxy-auth
46 HTTP/1.1 200 OK swsbounce
53 HTTP/1.1 407 Authorization Required to proxy me my dear
54 Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
56 HTTP/1.1 200 Things are fine in proxy land
57 Server: Microsoft-IIS/5.0
58 Content-Type: text/html; charset=iso-8859-1
61 Date: Thu, 09 Nov 2010 14:49:00 GMT
64 Content-Type: text/html
80 HTTP proxy CONNECT auth NTLM and then POST
83 http://test.remote.server.com:213/path/2130002 --proxy http://%HOSTIP:%HTTPPORT --proxy-user silly:person --proxy-ntlm --proxytunnel -d "postit"
87 # Verify data after the test has been "shot"
92 # We strip off a large chunk of the type-2 NTLM message since it depends on
93 # the local host name and thus differs on different machines!
95 s/^(Proxy-Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAABQAFAHAAAAA).*/$1/
97 <protocol nonewline="yes">
98 CONNECT test.remote.server.com:213 HTTP/1.0
99 Host: test.remote.server.com:213
100 Proxy-Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
101 Proxy-Connection: Keep-Alive
103 CONNECT test.remote.server.com:213 HTTP/1.0
104 Host: test.remote.server.com:213
105 Proxy-Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAABQAFAHAAAAA
106 Proxy-Connection: Keep-Alive
108 POST /path/2130002 HTTP/1.1
109 User-Agent: curl/7.12.3-CVS (i686-pc-linux-gnu) libcurl/7.12.3-CVS OpenSSL/0.9.6b zlib/1.1.4
110 Host: test.remote.server.com:213
113 Content-Type: application/x-www-form-urlencoded