12 <!-- no <data> in this test since we have NTLM from the start
14 This is supposed to be returned when the server gets a first
15 Authorization: NTLM line passed-in from the client -->
18 HTTP/1.1 401 Now gimme that second request of crap
\r
19 Server: Microsoft-IIS/5.0
\r
20 Content-Type: text/html; charset=iso-8859-1
\r
22 WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
\r
24 This is not the real page either!
27 # This is supposed to be returned when the server gets the second
28 # Authorization: NTLM line passed-in from the client
30 HTTP/1.1 200 Things are fine in server land swsclose
\r
31 Server: Microsoft-IIS/5.0
\r
32 Content-Type: text/html; charset=iso-8859-1
\r
35 Finally, this is the real page!
39 HTTP/1.1 401 Now gimme that second request of crap
\r
40 Server: Microsoft-IIS/5.0
\r
41 Content-Type: text/html; charset=iso-8859-1
\r
43 WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
\r
45 HTTP/1.1 200 Things are fine in server land swsclose
\r
46 Server: Microsoft-IIS/5.0
\r
47 Content-Type: text/html; charset=iso-8859-1
\r
50 Finally, this is the real page!
66 HTTP POST with NTLM authorization and added custom headers
69 # we force our own host name, in order to make the test machine independent
70 CURL_GETHOSTNAME=curlhost
71 # we try to use the LD_PRELOAD hack, if not a debug build
72 LD_PRELOAD=%PWD/libtest/.libs/libhostname.so
75 http://%HOSTIP:%HTTPPORT/267 -u testuser:testpass --ntlm -d "data" -H "Header1: yes" -H "Header2: no"
82 # Verify data after the test has been "shot"
87 <protocol nonewline="yes">
89 Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
\r
90 User-Agent: curl/7.10.6-pre1 (i686-pc-linux-gnu) libcurl/7.10.6-pre1 OpenSSL/0.9.7a ipv6 zlib/1.1.3
\r
91 Host: %HOSTIP:%HTTPPORT
\r
96 Content-Type: application/x-www-form-urlencoded
\r
99 Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAACeAJ4AWAAAAAAAAAD2AAAACAAIAPYAAAAIAAgA/gAAAAAAAAAAAAAABoKBAL9LNW5+nkyHZRmyFaL/LJ4xMjM0MjIzNGUCyhgQ9hw6eWAT13EbDa0BAQAAAAAAAACAPtXesZ0BMTIzNDIyMzQAAAAAAgAEAEMAQwABABIARQBMAEkAUwBBAEIARQBUAEgABAAYAGMAYwAuAGkAYwBlAGQAZQB2AC4AbgB1AAMALABlAGwAaQBzAGEAYgBlAHQAaAAuAGMAYwAuAGkAYwBlAGQAZQB2AC4AbgB1AAAAAAAAAAAAdGVzdHVzZXJjdXJsaG9zdA==
\r
100 User-Agent: curl/7.10.6-pre1 (i686-pc-linux-gnu) libcurl/7.10.6-pre1 OpenSSL/0.9.7a ipv6 zlib/1.1.3
\r
101 Host: %HOSTIP:%HTTPPORT
\r
106 Content-Type: application/x-www-form-urlencoded
\r