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
17 HTTP/1.1 401 Now gimme that second request of crap
\r
18 Server: Microsoft-IIS/5.0
\r
19 Content-Type: text/html; charset=iso-8859-1
\r
21 WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
\r
23 This is not the real page either!
26 # This is supposed to be returned when the server gets the second
27 # Authorization: NTLM line passed-in from the client
29 HTTP/1.1 301 Things are fine in server land swsclose
\r
30 Server: Microsoft-IIS/5.0
\r
32 Location: /you/890010
\r
36 # This is the first reply after the redirection
38 HTTP/1.1 401 Now gimme that second round of crap
\r
39 Server: Microsoft-IIS/5.0
\r
40 Content-Type: text/html; charset=iso-8859-1
\r
42 WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
\r
44 This is not the real page either!
47 # This is supposed to be returned when the server gets the second
48 # Authorization: NTLM line passed-in from the client
50 HTTP/1.1 200 Things are fine in server land swsclose
\r
51 Server: Microsoft-IIS/5.0
\r
52 Content-Type: text/html; charset=iso-8859-1
\r
55 Finally, this is the real page!
59 HTTP/1.1 401 Now gimme that second request of crap
\r
60 Server: Microsoft-IIS/5.0
\r
61 Content-Type: text/html; charset=iso-8859-1
\r
63 WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
\r
65 HTTP/1.1 301 Things are fine in server land swsclose
\r
66 Server: Microsoft-IIS/5.0
\r
68 Location: /you/890010
\r
70 HTTP/1.1 401 Now gimme that second round of crap
\r
71 Server: Microsoft-IIS/5.0
\r
72 Content-Type: text/html; charset=iso-8859-1
\r
74 WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
\r
76 HTTP/1.1 200 Things are fine in server land swsclose
\r
77 Server: Microsoft-IIS/5.0
\r
78 Content-Type: text/html; charset=iso-8859-1
\r
81 Finally, this is the real page!
95 HTTP with NTLM and follow-location
98 http://%HOSTIP:%HTTPPORT/89 -u testuser:testpass --ntlm -L
102 # Verify data after the test has been "shot"
107 # We strip off a large chunk of the type-2 NTLM message since it depends on
108 # the local host name and thus differs on different machines!
110 s/^(Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAA).*/$1/
114 Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
\r
115 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
116 Host: 127.0.0.1:%HTTPPORT
\r
120 Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAA
121 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
122 Host: 127.0.0.1:%HTTPPORT
\r
125 GET /you/890010 HTTP/1.1
\r
126 Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
\r
127 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
128 Host: 127.0.0.1:%HTTPPORT
\r
131 GET /you/890010 HTTP/1.1
\r
132 Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAA
133 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
134 Host: 127.0.0.1:%HTTPPORT
\r