15 HTTP/1.1 407 Authorization Required swsclose
16 Server: Apache/1.3.27 (Darwin) PHP/4.1.2
17 Proxy-Authenticate: Blackmagic realm="gimme all yer s3cr3ts"
18 Proxy-Authenticate: Basic realm="gimme all yer s3cr3ts"
19 Proxy-Authenticate: NTLM
20 Content-Type: text/html; charset=iso-8859-1
23 This is not the real page
26 # this is returned first since we get no proxy-auth
28 HTTP/1.1 407 Authorization Required to proxy me my dear
29 Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
32 Hey you, authenticate or go away!
35 # This is supposed to be returned when the server gets the second
36 # Authorization: NTLM line passed-in from the client
38 HTTP/1.1 200 Things are fine in proxy land swsclose
39 Server: Microsoft-IIS/5.0
40 Content-Type: text/html; charset=iso-8859-1
43 Contents of that page you requested, sir.
47 HTTP/1.1 407 Authorization Required swsclose
48 Server: Apache/1.3.27 (Darwin) PHP/4.1.2
49 Proxy-Authenticate: Blackmagic realm="gimme all yer s3cr3ts"
50 Proxy-Authenticate: Basic realm="gimme all yer s3cr3ts"
51 Proxy-Authenticate: NTLM
52 Content-Type: text/html; charset=iso-8859-1
55 HTTP/1.1 407 Authorization Required to proxy me my dear
56 Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
59 HTTP/1.1 200 Things are fine in proxy land swsclose
60 Server: Microsoft-IIS/5.0
61 Content-Type: text/html; charset=iso-8859-1
64 Contents of that page you requested, sir.
83 HTTP proxy auth NTLM with POST data from CURLOPT_POSTFIELDS
86 # we force our own host name, in order to make the test machine independent
87 CURL_GETHOSTNAME=curlhost
88 # we try to use the LD_PRELOAD hack, if not a debug build
89 LD_PRELOAD=%PWD/libtest/.libs/libhostname.so
92 http://test.remote.example.com/path/548 http://%HOSTIP:%HTTPPORT testuser:testpass
99 # Verify data after the test has been "shot"
105 POST http://test.remote.example.com/path/548 HTTP/1.1
106 Host: test.remote.example.com
107 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
109 Proxy-Connection: Keep-Alive
111 Content-Type: application/x-www-form-urlencoded
113 this is the blurb we want to upload
114 POST http://test.remote.example.com/path/548 HTTP/1.1
115 Host: test.remote.example.com
116 Proxy-Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
117 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
119 Proxy-Connection: Keep-Alive
121 Content-Type: application/x-www-form-urlencoded
123 POST http://test.remote.example.com/path/548 HTTP/1.1
124 Host: test.remote.example.com
125 Proxy-Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAACeAJ4AWAAAAAAAAAD2AAAACAAIAPYAAAAIAAgA/gAAAAAAAAAAAAAABoKBAMOv20GsURsat8gdH/RfnYI0MzIxNTMyMeCdd8AzFZLZ/N1ujmilmCcBAQAAAAAAAACAPtXesZ0BNDMyMTUzMjEAAAAAAgAEAEMAQwABABIARQBMAEkAUwBBAEIARQBUAEgABAAYAGMAYwAuAGkAYwBlAGQAZQB2AC4AbgB1AAMALABlAGwAaQBzAGEAYgBlAHQAaAAuAGMAYwAuAGkAYwBlAGQAZQB2AC4AbgB1AAAAAAAAAAAAdGVzdHVzZXJjdXJsaG9zdA==
126 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
128 Proxy-Connection: Keep-Alive
130 Content-Type: application/x-www-form-urlencoded
132 this is the blurb we want to upload