1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP GET
6HTTP Basic auth
7HTTP NTLM auth
8pipelining
9</keywords>
10</info>
11# Server-side
12<reply>
13
14<!-- Basic auth -->
15<data100>
16HTTP/1.1 401 Need Basic or NTLM auth
17Server: Microsoft-IIS/5.0
18Content-Type: text/html; charset=iso-8859-1
19Content-Length: 29
20WWW-Authenticate: NTLM
21WWW-Authenticate: Basic realm="testrealm"
22
23This is a bad password page!
24</data100>
25
26<!-- NTML auth -->
27<data200>
28HTTP/1.1 401 Need Basic or NTLM auth (2)
29Server: Microsoft-IIS/5.0
30Content-Type: text/html; charset=iso-8859-1
31Content-Length: 27
32WWW-Authenticate: NTLM
33WWW-Authenticate: Basic realm="testrealm"
34
35This is not the real page!
36</data200>
37
38<data1201>
39HTTP/1.1 401 NTLM intermediate (2)
40Server: Microsoft-IIS/5.0
41Content-Type: text/html; charset=iso-8859-1
42Content-Length: 33
43WWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADAAAAAGggEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg=
44
45This is still not the real page!
46</data1201>
47
48<data1202>
49HTTP/1.1 200 Things are fine in server land
50Server: Microsoft-IIS/5.0
51Content-Type: text/html; charset=iso-8859-1
52Content-Length: 32
53
54Finally, this is the real page!
55</data1202>
56
57<datacheck>
58HTTP/1.1 401 Need Basic or NTLM auth
59Server: Microsoft-IIS/5.0
60Content-Type: text/html; charset=iso-8859-1
61Content-Length: 29
62WWW-Authenticate: NTLM
63WWW-Authenticate: Basic realm="testrealm"
64
65This is a bad password page!
66HTTP/1.1 401 Need Basic or NTLM auth
67Server: Microsoft-IIS/5.0
68Content-Type: text/html; charset=iso-8859-1
69Content-Length: 29
70WWW-Authenticate: NTLM
71WWW-Authenticate: Basic realm="testrealm"
72
73This is a bad password page!
74HTTP/1.1 401 NTLM intermediate (2)
75Server: Microsoft-IIS/5.0
76Content-Type: text/html; charset=iso-8859-1
77Content-Length: 33
78WWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADAAAAAGggEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg=
79
80HTTP/1.1 200 Things are fine in server land
81Server: Microsoft-IIS/5.0
82Content-Type: text/html; charset=iso-8859-1
83Content-Length: 32
84
85Finally, this is the real page!
86</datacheck>
87
88</reply>
89
90# Client-side
91<client>
92<features>
93NTLM
94!SSPI
95</features>
96<server>
97http
98</server>
99<tool>
100lib2033
101</tool>
102
103 <name>
104NTLM connection mapping, pipelining enabled
105 </name>
106 <setenv>
107# we force our own host name, in order to make the test machine independent
108CURL_GETHOSTNAME=curlhost
109# we try to use the LD_PRELOAD hack, if not a debug build
110LD_PRELOAD=%PWD/libtest/.libs/libhostname.so
111 </setenv>
112 <command>
113http://%HOSTIP:%HTTPPORT/2032
114</command>
115<precheck>
116chkhostname curlhost
117</precheck>
118</client>
119
120# Verify data after the test has been "shot"
121<verify>
122<strip>
123^User-Agent:.*
124</strip>
125<protocol>
126GET /20320100 HTTP/1.1
127Authorization: Basic dGVzdHVzZXI6dGVzdHBhc3M=
128Host: 127.0.0.1:%HTTPPORT
129Accept: */*
130
131GET /20320100 HTTP/1.1
132Authorization: Basic dGVzdHVzZXI6dGVzdHBhc3M=
133Host: 127.0.0.1:%HTTPPORT
134Accept: */*
135
136GET /20320200 HTTP/1.1
137Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
138Host: 127.0.0.1:%HTTPPORT
139Accept: */*
140
141GET /20320200 HTTP/1.1
142Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAAIAAgAeAAAAAAAAAAAAAAABoIBAI+/Fp9IERAQ74OsdNPbBpg7o8CVwLSO4DtFyIcZHUMKVktWIu92s2892OVpd2JzqnRlc3R1c2VyY3VybGhvc3Q=
143Host: 127.0.0.1:%HTTPPORT
144Accept: */*
145
146</protocol>
147</verify>
148</testcase>
149