15
HTTP/1.1 407 Authorization Required to proxy me my dear swsclose
16
Proxy-Authenticate: NTLM
23
# this is returned first since we get no proxy-auth
25
HTTP/1.1 407 Authorization Required to proxy me my dear
26
Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
29
And you should ignore this data.
32
# This is supposed to be returned when the server gets the second
33
# Authorization: NTLM line passed-in from the client
35
HTTP/1.1 200 Things are fine in proxy land
36
Server: Microsoft-IIS/5.0
37
Content-Type: text/html; charset=iso-8859-1
41
# this is returned when we get a GET!
44
Date: Thu, 09 Nov 2010 14:49:00 GMT
47
Content-Type: text/html
53
# then this is returned when we get proxy-auth
55
HTTP/1.1 200 OK swsbounce
62
HTTP/1.1 407 Authorization Required to proxy me my dear swsclose
63
Proxy-Authenticate: NTLM
67
HTTP/1.1 407 Authorization Required to proxy me my dear
68
Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
71
HTTP/1.1 200 Things are fine in proxy land
72
Server: Microsoft-IIS/5.0
73
Content-Type: text/html; charset=iso-8859-1
76
Date: Thu, 09 Nov 2010 14:49:00 GMT
79
Content-Type: text/html
95
HTTP proxy CONNECT with any proxyauth and proxy offers NTLM and close
98
http://test.remote.server.com:1021/path/10210002 --proxy http://%HOSTIP:%HTTPPORT --proxy-user silly:person --proxy-anyauth --proxytunnel
102
# Verify data after the test has been "shot"
107
# We strip off a large chunk of the type-2 NTLM message since it depends on
108
# the local host name and thus differs on different machines!
110
s/^(Proxy-Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAABQAFAHAAAAA).*/$1/
113
CONNECT test.remote.server.com:1021 HTTP/1.0
114
Host: test.remote.server.com:1021
115
Proxy-Connection: Keep-Alive
117
CONNECT test.remote.server.com:1021 HTTP/1.0
118
Host: test.remote.server.com:1021
119
Proxy-Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
120
Proxy-Connection: Keep-Alive
122
CONNECT test.remote.server.com:1021 HTTP/1.0
123
Host: test.remote.server.com:1021
124
Proxy-Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAABQAFAHAAAAA
125
Proxy-Connection: Keep-Alive
127
GET /path/10210002 HTTP/1.1
128
User-Agent: curl/7.12.3-CVS (i686-pc-linux-gnu) libcurl/7.12.3-CVS OpenSSL/0.9.6b zlib/1.1.4
129
Host: test.remote.server.com:1021