xref: /curl/tests/data/test69 (revision 5a41abef)
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP GET
6HTTP NTLM auth
7NTLM
8</keywords>
9</info>
10# Server-side
11<reply>
12<data>
13HTTP/1.1 401 Authorization Required swsclose
14Server: Apache/1.3.27 (Darwin) PHP/4.1.2
15WWW-Authenticate: Basic
16WWW-Authenticate: Wild-and-crazy
17WWW-Authenticate: NTLM
18Content-Type: text/html; charset=iso-8859-1
19Content-Length: 26
20
21This is not the real page
22</data>
23
24# This is supposed to be returned when the server gets a first
25# Authorization: NTLM line passed-in from the client
26<data1001>
27HTTP/1.1 401 Now gimme that second request of crap
28Server: Microsoft-IIS/5.0
29Content-Length: 34
30Content-Type: text/html; charset=iso-8859-1
31WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
32
33This is not the real page either!
34</data1001>
35
36# This is supposed to be returned when the server gets the second
37# Authorization: NTLM line passed-in from the client
38<data1002>
39HTTP/1.1 200 Things are fine in server land swsclose
40Server: Microsoft-IIS/5.0
41Content-Type: text/html; charset=iso-8859-1
42Content-Length: 32
43
44Finally, this is the real page!
45</data1002>
46
47<datacheck>
48HTTP/1.1 401 Authorization Required swsclose
49Server: Apache/1.3.27 (Darwin) PHP/4.1.2
50WWW-Authenticate: Basic
51WWW-Authenticate: Wild-and-crazy
52WWW-Authenticate: NTLM
53Content-Type: text/html; charset=iso-8859-1
54Content-Length: 26
55
56HTTP/1.1 401 Now gimme that second request of crap
57Server: Microsoft-IIS/5.0
58Content-Length: 34
59Content-Type: text/html; charset=iso-8859-1
60WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
61
62HTTP/1.1 200 Things are fine in server land swsclose
63Server: Microsoft-IIS/5.0
64Content-Type: text/html; charset=iso-8859-1
65Content-Length: 32
66
67Finally, this is the real page!
68</datacheck>
69
70</reply>
71
72# Client-side
73<client>
74<features>
75NTLM
76SSL
77!SSPI
78</features>
79<server>
80http
81</server>
82<name>
83HTTP with NTLM, Basic or Wild-and-crazy authorization
84</name>
85<command>
86http://%HOSTIP:%HTTPPORT/%TESTNUMBER -u testuser:testpass --anyauth
87</command>
88</client>
89
90# Verify data after the test has been "shot"
91<verify>
92<protocol>
93GET /%TESTNUMBER HTTP/1.1
94Host: %HOSTIP:%HTTPPORT
95User-Agent: curl/%VERSION
96Accept: */*
97
98GET /%TESTNUMBER HTTP/1.1
99Host: %HOSTIP:%HTTPPORT
100Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
101User-Agent: curl/%VERSION
102Accept: */*
103
104GET /%TESTNUMBER HTTP/1.1
105Host: %HOSTIP:%HTTPPORT
106Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAALAAsAeAAAAAAAAAAAAAAAhoIBAFpkQwKRCZFMhjj0tw47wEjKHRHlvzfxQamFcheMuv8v+xeqphEO5V41xRd7R9deOXRlc3R1c2VyV09SS1NUQVRJT04=
107User-Agent: curl/%VERSION
108Accept: */*
109
110</protocol>
111</verify>
112</testcase>
113