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