5 # this is returned first since we get no proxy-auth
7 HTTP/1.1 407 Authorization Required to proxy me my dear
8 Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
11 Hey you, authenticate or go away!
14 # This is supposed to be returned when the server gets the second
15 # Authorization: NTLM line passed-in from the client
17 HTTP/1.1 200 Things are fine in proxy land swsclose
18 Server: Microsoft-IIS/5.0
19 Content-Type: text/html; charset=iso-8859-1
22 Contents of that page you requested, sir.
26 HTTP/1.1 407 Authorization Required to proxy me my dear
27 Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
30 HTTP/1.1 200 Things are fine in proxy land swsclose
31 Server: Microsoft-IIS/5.0
32 Content-Type: text/html; charset=iso-8859-1
35 Contents of that page you requested, sir.
48 HTTP proxy-auth NTLM and then POST
51 http://%HOSTIP:%HTTPPORT/239 --proxy http://%HOSTIP:%HTTPPORT --proxy-user silly:person --proxy-ntlm -d "postit"
55 # Verify data after the test has been "shot"
60 # We strip off a large chunk of the type-2 NTLM message since it depends on
61 # the local host name and thus differs on different machines!
63 s/^(Proxy-Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAABQAFAHAAAAA).*/$1/
65 <protocol nonewline="yes">
66 POST http://%HOSTIP:%HTTPPORT/239 HTTP/1.1
67 Proxy-Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
68 User-Agent: curl/7.13.2-CVS (i686-pc-linux-gnu) libcurl/7.13.2-CVS OpenSSL/0.9.7e zlib/1.2.2 libidn/0.5.13
69 Host: %HOSTIP:%HTTPPORT
72 Proxy-Connection: Keep-Alive
74 Content-Type: application/x-www-form-urlencoded
76 POST http://%HOSTIP:%HTTPPORT/239 HTTP/1.1
77 Proxy-Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAABQAFAHAAAAA
78 User-Agent: curl/7.13.2-CVS (i686-pc-linux-gnu) libcurl/7.13.2-CVS OpenSSL/0.9.7e zlib/1.2.2 libidn/0.5.13
79 Host: %HOSTIP:%HTTPPORT
82 Proxy-Connection: Keep-Alive
84 Content-Type: application/x-www-form-urlencoded