xref: /curl/tests/data/test91 (revision 3fd80c7b)
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: Magic-Negotiate
16WWW-Authenticate: NTLM
17WWW-Authenticate: Basic realm="daniel"
18Content-Type: text/html; charset=iso-8859-1
19Content-Length: 0
20Connection: close
21
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: Magic-Negotiate
51WWW-Authenticate: NTLM
52WWW-Authenticate: Basic realm="daniel"
53Content-Type: text/html; charset=iso-8859-1
54Content-Length: 0
55Connection: close
56
57HTTP/1.1 401 Now gimme that second request of crap
58Server: Microsoft-IIS/5.0
59Content-Length: 34
60Content-Type: text/html; charset=iso-8859-1
61WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
62
63HTTP/1.1 200 Things are fine in server land swsclose
64Server: Microsoft-IIS/5.0
65Content-Type: text/html; charset=iso-8859-1
66Content-Length: 32
67
68Finally, this is the real page!
69</datacheck>
70
71</reply>
72
73# Client-side
74<client>
75<features>
76NTLM
77SSL
78!SSPI
79</features>
80<server>
81http
82</server>
83<name>
84HTTP with NTLM/Negotiate/Basic, anyauth and user with domain, with size 0
85</name>
86<command>
87http://%HOSTIP:%HTTPPORT/%TESTNUMBER --anyauth -u mydomain\\myself:secret
88</command>
89</client>
90
91# Verify data after the test has been "shot"
92<verify>
93<protocol>
94GET /%TESTNUMBER HTTP/1.1
95Host: %HOSTIP:%HTTPPORT
96User-Agent: curl/%VERSION
97Accept: */*
98
99GET /%TESTNUMBER HTTP/1.1
100Host: %HOSTIP:%HTTPPORT
101Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
102User-Agent: curl/%VERSION
103Accept: */*
104
105GET /%TESTNUMBER HTTP/1.1
106Host: %HOSTIP:%HTTPPORT
107Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAgACABwAAAABgAGAHgAAAALAAsAfgAAAAAAAAAAAAAAhoIBAMIyJpR5mHpg2FZha5kRaFZ9436GAxPu0C5llxexSQ5QzVkiLSfkcpVyRgCXXqR+Am15ZG9tYWlubXlzZWxmV09SS1NUQVRJT04=
108User-Agent: curl/%VERSION
109Accept: */*
110
111</protocol>
112</verify>
113</testcase>
114