13
HTTP/1.1 200 Thanks for this! swsclose
16
This is the final page !
20
HTTP/1.1 401 Now gimme that second request of crap
21
Server: Microsoft-IIS/5.0
22
Content-Type: text/html; charset=iso-8859-1
24
WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
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!
33
Server: Microsoft-IIS/5.0
34
Content-Type: text/html; charset=iso-8859-1
38
This is not the real page either!
42
HTTP/1.1 401 Now gimme that second request of crap
43
Server: Microsoft-IIS/5.0
44
Content-Type: text/html; charset=iso-8859-1
46
WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
48
HTTP/1.1 302 Thanks for this, but we want to redir you!
49
Server: Microsoft-IIS/5.0
50
Content-Type: text/html; charset=iso-8859-1
54
HTTP/1.1 200 Thanks for this! swsclose
57
This is the final page !
71
HTTP POST with NTLM authorization and following a 302 redirect
74
http://%HOSTIP:%HTTPPORT/1100 -u testuser:testpass --ntlm -L -d "stuff to send away"
78
# Verify data after the test has been "shot"
83
# We strip off a large chunk of the type-2 NTLM message since it depends on
84
# the local host name and thus differs on different machines!
86
s/^(Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAA).*/$1/
90
Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
91
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
92
Host: %HOSTIP:%HTTPPORT
95
Content-Type: application/x-www-form-urlencoded
98
Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAA
99
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
100
Host: %HOSTIP:%HTTPPORT
103
Content-Type: application/x-www-form-urlencoded
105
stuff to send awayGET /1100 HTTP/1.1
106
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
107
Host: %HOSTIP:%HTTPPORT