13 <!-- no <data> in this test since we have NTLM from the start
15 This is supposed to be returned when the server gets a first
16 Authorization: NTLM line passed-in from the client -->
19 HTTP/1.1 401 Now gimme that second request of crap
\r
20 Server: Microsoft-IIS/5.0
\r
21 Content-Type: text/html; charset=iso-8859-1
\r
23 WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
\r
25 This is not the real page either!
28 # This is supposed to be returned when the server gets the second
29 # Authorization: NTLM line passed-in from the client
31 HTTP/1.1 301 Things are fine in server land swsclose
\r
32 Server: Microsoft-IIS/5.0
\r
34 Location: /you/890010
\r
38 # This is the first reply after the redirection
40 HTTP/1.1 401 Now gimme that second round of crap
\r
41 Server: Microsoft-IIS/5.0
\r
42 Content-Type: text/html; charset=iso-8859-1
\r
44 WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
\r
46 This is not the real page either!
49 # This is supposed to be returned when the server gets the second
50 # Authorization: NTLM line passed-in from the client
52 HTTP/1.1 200 Things are fine in server land swsclose
\r
53 Server: Microsoft-IIS/5.0
\r
54 Content-Type: text/html; charset=iso-8859-1
\r
57 Finally, this is the real page!
61 HTTP/1.1 401 Now gimme that second request of crap
\r
62 Server: Microsoft-IIS/5.0
\r
63 Content-Type: text/html; charset=iso-8859-1
\r
65 WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
\r
67 HTTP/1.1 301 Things are fine in server land swsclose
\r
68 Server: Microsoft-IIS/5.0
\r
70 Location: /you/890010
\r
72 HTTP/1.1 401 Now gimme that second round of crap
\r
73 Server: Microsoft-IIS/5.0
\r
74 Content-Type: text/html; charset=iso-8859-1
\r
76 WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
\r
78 HTTP/1.1 200 Things are fine in server land swsclose
\r
79 Server: Microsoft-IIS/5.0
\r
80 Content-Type: text/html; charset=iso-8859-1
\r
83 Finally, this is the real page!
97 HTTP with NTLM and follow-location
100 http://%HOSTIP:%HTTPPORT/89 -u testuser:testpass --ntlm -L
104 # Verify data after the test has been "shot"
109 # We strip off a large chunk of the type-2 NTLM message since it depends on
110 # the local host name and thus differs on different machines!
112 s/^(Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAA).*/$1/
116 Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
\r
117 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
118 Host: 127.0.0.1:%HTTPPORT
\r
122 Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAA
123 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
124 Host: 127.0.0.1:%HTTPPORT
\r
127 GET /you/890010 HTTP/1.1
\r
128 Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
\r
129 User-Agent: curl/7.10.8-pre1 (i686-pc-linux-gnu) libcurl/7.10.8-pre1 OpenSSL/0.9.7a ipv6 zlib/1.1.3 GSS
\r
130 Host: 127.0.0.1:%HTTPPORT
\r
133 GET /you/890010 HTTP/1.1
\r
134 Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAA
135 User-Agent: curl/7.10.8-pre1 (i686-pc-linux-gnu) libcurl/7.10.8-pre1 OpenSSL/0.9.7a ipv6 zlib/1.1.3 GSS
\r
136 Host: 127.0.0.1:%HTTPPORT
\r