5 <!-- no <data> in this test since we have NTLM from the start
7 This is supposed to be returned when the server gets a first
8 Authorization: NTLM line passed-in from the client -->
11 HTTP/1.1 401 Now gimme that second request of crap
12 Server: Microsoft-IIS/5.0
13 Content-Type: text/html; charset=iso-8859-1
15 WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
17 This is not the real page either!
20 # This is supposed to be returned when the server gets the second
21 # Authorization: NTLM line passed-in from the client
23 HTTP/1.1 200 Things are fine in server land swsclose
24 Server: Microsoft-IIS/5.0
25 Content-Type: text/html; charset=iso-8859-1
28 Finally, this is the real page!
32 HTTP/1.1 401 Now gimme that second request of crap
33 Server: Microsoft-IIS/5.0
34 Content-Type: text/html; charset=iso-8859-1
36 WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
38 HTTP/1.1 200 Things are fine in server land swsclose
39 Server: Microsoft-IIS/5.0
40 Content-Type: text/html; charset=iso-8859-1
43 Finally, this is the real page!
57 HTTP with NTLM authorization when talking HTTP/1.0
60 http://%HOSTIP:%HTTPPORT/159 -u testuser:testpass --ntlm -0
64 # Verify data after the test has been "shot"
69 # We strip off a large chunk of the type-2 NTLM message since it depends on
70 # the local host name and thus differs on different machines!
72 s/^(Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAA).*/$1/
76 Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
77 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
78 Host: %HOSTIP:%HTTPPORT
82 Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAA
83 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
84 Host: %HOSTIP:%HTTPPORT