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
54 Finally, this is the real page!
58 HTTP/1.1 401 Now gimme that second request of crap
\r
59 Server: Microsoft-IIS/5.0
\r
60 Content-Type: text/html; charset=iso-8859-1
\r
62 WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
\r
64 HTTP/1.1 301 Things are fine in server land swsclose
\r
65 Server: Microsoft-IIS/5.0
\r
67 Location: /you/890010
\r
69 HTTP/1.1 401 Now gimme that second round of crap
\r
70 Server: Microsoft-IIS/5.0
\r
71 Content-Type: text/html; charset=iso-8859-1
\r
73 WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
\r
75 HTTP/1.1 200 Things are fine in server land swsclose
\r
76 Server: Microsoft-IIS/5.0
\r
77 Content-Type: text/html; charset=iso-8859-1
\r
79 Finally, this is the real page!
93 HTTP with NTLM and follow-location
96 http://%HOSTIP:%HTTPPORT/89 -u testuser:testpass --ntlm -L
100 # Verify data after the test has been "shot"
105 # We strip off a large chunk of the type-2 NTLM message since it depends on
106 # the local host name and thus differs on different machines!
108 s/^(Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAA).*/$1/
112 Authorization: NTLM TlRMTVNTUAABAAAABoIAAAAAAAAAAAAAAAAAAAAAAAA=
\r
113 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
114 Host: 127.0.0.1:%HTTPPORT
\r
118 Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAA
119 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
120 Host: 127.0.0.1:%HTTPPORT
\r
123 GET /you/890010 HTTP/1.1
\r
124 Authorization: NTLM TlRMTVNTUAABAAAABoIAAAAAAAAAAAAAAAAAAAAAAAA=
\r
125 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
126 Host: 127.0.0.1:%HTTPPORT
\r
129 GET /you/890010 HTTP/1.1
\r
130 Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAA
131 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
132 Host: 127.0.0.1:%HTTPPORT
\r