xref: /curl/tests/data/test2032 (revision 381792df)
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP GET
6HTTP Basic auth
7HTTP NTLM auth
8NTLM
9flaky
10timing-dependent
11</keywords>
12</info>
13# Server-side
14<reply>
15
16<!-- Basic auth -->
17<data100>
18HTTP/1.1 401 Need Basic or NTLM auth
19Server: Microsoft-IIS/5.0
20Content-Type: text/html; charset=iso-8859-1
21Content-Length: 29
22WWW-Authenticate: NTLM
23WWW-Authenticate: Basic realm="testrealm"
24
25This is a bad password page!
26</data100>
27
28<!-- NTLM auth -->
29<data200>
30HTTP/1.1 401 Need Basic or NTLM auth (2)
31Server: Microsoft-IIS/5.0
32Content-Type: text/html; charset=iso-8859-1
33Content-Length: 27
34WWW-Authenticate: NTLM
35WWW-Authenticate: Basic realm="testrealm"
36
37This is not the real page!
38</data200>
39
40<data1201>
41HTTP/1.1 401 NTLM intermediate (2)
42Server: Microsoft-IIS/5.0
43Content-Type: text/html; charset=iso-8859-1
44Content-Length: 33
45WWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADAAAACGgAEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg=
46
47This is still not the real page!
48</data1201>
49
50<data1202>
51HTTP/1.1 200 Things are fine in server land
52Server: Microsoft-IIS/5.0
53Content-Type: text/html; charset=iso-8859-1
54Content-Length: 32
55
56Finally, this is the real page!
57</data1202>
58
59<datacheck>
60Data connection 0: 228
61Data connection 1: 228
62Data connection 2: 402
63</datacheck>
64
65</reply>
66
67# Client-side
68<client>
69<features>
70NTLM
71SSL
72!SSPI
73</features>
74<server>
75http
76</server>
77<tool>
78libntlmconnect
79</tool>
80
81<name>
82NTLM connection mapping
83</name>
84<command>
85http://%HOSTIP:%HTTPPORT/%TESTNUMBER
86</command>
87</client>
88
89# Verify data after the test has been "shot"
90<verify>
91<protocol>
92GET /%TESTNUMBER0100 HTTP/1.1
93Host: %HOSTIP:%HTTPPORT
94Authorization: Basic dGVzdHVzZXI6dGVzdHBhc3M=
95Accept: */*
96
97GET /%TESTNUMBER0100 HTTP/1.1
98Host: %HOSTIP:%HTTPPORT
99Authorization: Basic dGVzdHVzZXI6dGVzdHBhc3M=
100Accept: */*
101
102GET /%TESTNUMBER0200 HTTP/1.1
103Host: %HOSTIP:%HTTPPORT
104Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
105Accept: */*
106
107GET /%TESTNUMBER0200 HTTP/1.1
108Host: %HOSTIP:%HTTPPORT
109Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAALAAsAeAAAAAAAAAAAAAAAhoABAI+/Fp9IERAQ74OsdNPbBpg7o8CVwLSO4DtFyIcZHUMKVktWIu92s2892OVpd2JzqnRlc3R1c2VyV09SS1NUQVRJT04=
110Accept: */*
111
112</protocol>
113</verify>
114</testcase>
115