xref: /curl/tests/data/test159 (revision 09437d8c)
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP GET
6HTTP NTLM auth
7</keywords>
8</info>
9
10# Server-side
11<reply>
12
13<!-- no <data> in this test since we have NTLM from the start
14
15This is supposed to be returned when the server gets a first
16Authorization: NTLM line passed-in from the client -->
17
18<data1001>
19HTTP/1.1 401 Now gimme that second request of crap
20Server: Microsoft-IIS/5.0
21Content-Type: text/html; charset=iso-8859-1
22Content-Length: 34
23WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
24Connection: close
25
26This is not the real page either!
27</data1001>
28
29<datacheck>
30HTTP/1.1 401 Now gimme that second request of crap
31Server: Microsoft-IIS/5.0
32Content-Type: text/html; charset=iso-8859-1
33Content-Length: 34
34WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
35Connection: close
36
37This is not the real page either!
38</datacheck>
39
40</reply>
41
42# Client-side
43<client>
44<features>
45NTLM
46SSL
47!SSPI
48Debug
49</features>
50<server>
51http
52</server>
53<name>
54HTTP with NTLM authorization when talking HTTP/1.0 (known to fail)
55</name>
56<command>
57http://%HOSTIP:%HTTPPORT/%TESTNUMBER -u testuser:testpass --ntlm -0
58</command>
59</client>
60
61# Verify data after the test has been "shot"
62<verify>
63<protocol>
64GET /%TESTNUMBER HTTP/1.0
65Host: %HOSTIP:%HTTPPORT
66Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
67User-Agent: curl/%VERSION
68Accept: */*
69
70</protocol>
71</verify>
72</testcase>
73