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
21 And you should ignore this data.
24 # This is supposed to be returned when the server gets the second
25 # Authorization: NTLM line passed-in from the client
27 HTTP/1.1 200 Things are fine in proxy land
\r
28 Server: Microsoft-IIS/5.0
\r
29 Content-Type: text/html; charset=iso-8859-1
\r
33 # this is returned when we get a GET!
36 Date: Thu, 09 Nov 2010 14:49:00 GMT
39 Content-Type: text/html
45 # then this is returned when we get proxy-auth
47 HTTP/1.1 200 OK swsbounce
\r
54 HTTP/1.1 407 Authorization Required to proxy me my dear
\r
55 Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
\r
58 HTTP/1.1 200 Things are fine in proxy land
\r
59 Server: Microsoft-IIS/5.0
\r
60 Content-Type: text/html; charset=iso-8859-1
\r
63 Date: Thu, 09 Nov 2010 14:49:00 GMT
66 Content-Type: text/html
84 HTTP proxy CONNECT auth NTLM
87 # we force our own host name, in order to make the test machine independent
88 CURL_GETHOSTNAME=curlhost
89 # we try to use the LD_PRELOAD hack, if not a debug build
90 LD_PRELOAD=%PWD/libtest/.libs/libhostname.so
93 http://test.remote.example.com.209:%HTTPPORT/path/2090002 --proxy http://%HOSTIP:%HTTPPORT --proxy-user testuser:testpass --proxy-ntlm --proxytunnel
100 # Verify data after the test has been "shot"
106 CONNECT test.remote.example.com.209:%HTTPPORT HTTP/1.1
\r
107 Host: test.remote.example.com.209:%HTTPPORT
\r
108 Proxy-Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
\r
109 Proxy-Connection: Keep-Alive
\r
111 CONNECT test.remote.example.com.209:%HTTPPORT HTTP/1.1
\r
112 Host: test.remote.example.com.209:%HTTPPORT
\r
113 Proxy-Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAACeAJ4AWAAAAAAAAAD2AAAACAAIAPYAAAAIAAgA/gAAAAAAAAAAAAAABoKBAL9LNW5+nkyHZRmyFaL/LJ4xMjM0MjIzNGUCyhgQ9hw6eWAT13EbDa0BAQAAAAAAAACAPtXesZ0BMTIzNDIyMzQAAAAAAgAEAEMAQwABABIARQBMAEkAUwBBAEIARQBUAEgABAAYAGMAYwAuAGkAYwBlAGQAZQB2AC4AbgB1AAMALABlAGwAaQBzAGEAYgBlAHQAaAAuAGMAYwAuAGkAYwBlAGQAZQB2AC4AbgB1AAAAAAAAAAAAdGVzdHVzZXJjdXJsaG9zdA==
\r
114 Proxy-Connection: Keep-Alive
\r
116 GET /path/2090002 HTTP/1.1
\r
117 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
118 Host: test.remote.example.com.209:%HTTPPORT
\r