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