13 HTTP/1.1 200 Thanks for this! swsclose
\r
16 This is the final page !
20 HTTP/1.1 401 Now gimme that second request of crap
\r
21 Server: Microsoft-IIS/5.0
\r
22 Content-Type: text/html; charset=iso-8859-1
\r
24 WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
\r
26 This is not the real page either!
29 # This is supposed to be returned when the server gets the second
30 # Authorization: NTLM line passed-in from the client
32 HTTP/1.1 302 Thanks for this, but we want to redir you!
\r
33 Server: Microsoft-IIS/5.0
\r
34 Content-Type: text/html; charset=iso-8859-1
\r
38 This is not the real page either!
42 HTTP/1.1 401 Now gimme that second request of crap
\r
43 Server: Microsoft-IIS/5.0
\r
44 Content-Type: text/html; charset=iso-8859-1
\r
46 WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
\r
48 HTTP/1.1 302 Thanks for this, but we want to redir you!
\r
49 Server: Microsoft-IIS/5.0
\r
50 Content-Type: text/html; charset=iso-8859-1
\r
54 HTTP/1.1 200 Thanks for this! swsclose
\r
57 This is the final page !
71 HTTP POST with NTLM authorization and following a 302 redirect
74 # we force our own host name, in order to make the test machine independent
75 CURL_GETHOSTNAME=curlhost
76 # we try to use the LD_PRELOAD hack, if not a debug build
77 LD_PRELOAD=%PWD/libtest/.libs/libhostname.so
80 http://%HOSTIP:%HTTPPORT/1100 -u testuser:testpass --ntlm -L -d "stuff to send away"
87 # Verify data after the test has been "shot"
94 Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
\r
95 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
96 Host: %HOSTIP:%HTTPPORT
\r
99 Content-Type: application/x-www-form-urlencoded
\r
101 POST /1100 HTTP/1.1
\r
102 Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAAIAAgAeAAAAAAAAAAAAAAABoKBAFpkQwKRCZFMhjj0tw47wEjKHRHlvzfxQamFcheMuv8v+xeqphEO5V41xRd7R9deOXRlc3R1c2VyY3VybGhvc3Q=
\r
103 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
104 Host: %HOSTIP:%HTTPPORT
\r
107 Content-Type: application/x-www-form-urlencoded
\r
109 stuff to send awayGET /1100 HTTP/1.1
\r
110 User-Agent: curl/7.19.5-CVS (i686-pc-linux-gnu) libcurl/7.19.5-CVS GnuTLS/2.6.6 zlib/1.2.3.3 c-ares/1.6.1-CVS libidn/1.14 libssh2/1.1
\r
111 Host: %HOSTIP:%HTTPPORT
\r