15 # this is returned first since we get no proxy-auth
17 HTTP/1.1 407 Authorization Required to proxy me my dear
\r
18 Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
\r
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
\r
27 Server: Microsoft-IIS/5.0
\r
28 Content-Type: text/html; charset=iso-8859-1
\r
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
\r
53 HTTP/1.1 407 Authorization Required to proxy me my dear
\r
54 Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
\r
56 HTTP/1.1 200 Things are fine in proxy land
\r
57 Server: Microsoft-IIS/5.0
\r
58 Content-Type: text/html; charset=iso-8859-1
\r
61 Date: Thu, 09 Nov 2010 14:49:00 GMT
64 Content-Type: text/html
82 HTTP 1.0 proxy CONNECT auth NTLM and then POST
85 # we force our own host name, in order to make the test machine independent
86 CURL_GETHOSTNAME=curlhost
87 # we try to use the LD_PRELOAD hack, if not a debug build
88 LD_PRELOAD=%PWD/libtest/.libs/libhostname.so
91 http://test.remote.example.com.213:%HTTPPORT/path/2130002 --proxy1.0 http://%HOSTIP:%HTTPPORT --proxy-user testuser:testpass --proxy-ntlm --proxytunnel -d "postit"
98 # Verify data after the test has been "shot"
103 <protocol nonewline="yes">
104 CONNECT test.remote.example.com.213:%HTTPPORT HTTP/1.0
\r
105 Host: test.remote.example.com.213:%HTTPPORT
\r
106 Proxy-Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
\r
108 CONNECT test.remote.example.com.213:%HTTPPORT HTTP/1.0
\r
109 Host: test.remote.example.com.213:%HTTPPORT
\r
110 Proxy-Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAACeAJ4AWAAAAAAAAAD2AAAACAAIAPYAAAAIAAgA/gAAAAAAAAAAAAAABoKBAL9LNW5+nkyHZRmyFaL/LJ4xMjM0MjIzNGUCyhgQ9hw6eWAT13EbDa0BAQAAAAAAAACAPtXesZ0BMTIzNDIyMzQAAAAAAgAEAEMAQwABABIARQBMAEkAUwBBAEIARQBUAEgABAAYAGMAYwAuAGkAYwBlAGQAZQB2AC4AbgB1AAMALABlAGwAaQBzAGEAYgBlAHQAaAAuAGMAYwAuAGkAYwBlAGQAZQB2AC4AbgB1AAAAAAAAAAAAdGVzdHVzZXJjdXJsaG9zdA==
\r
112 POST /path/2130002 HTTP/1.1
\r
113 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
114 Host: test.remote.example.com.213:%HTTPPORT
\r
117 Content-Type: application/x-www-form-urlencoded
\r