1<testcase>
2# Server-side
3<reply>
4
5<!-- no <data> in this test since we have NTLM from the start
6
7This is supposed to be returned when the server gets a first
8Authorization: NTLM line passed-in from the client -->
9
10<data1001>
11HTTP/1.1 401 Now gimme that second request of crap
12Server: Microsoft-IIS/5.0
13Content-Type: text/html; charset=iso-8859-1
14Content-Length: 34
15WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
16
17This is not the real page either!
18</data1001>
19
20# This is supposed to be returned when the server gets the second
21# Authorization: NTLM line passed-in from the client
22<data1002>
23HTTP/1.1 200 Things are fine in server land swsclose
24Server: Microsoft-IIS/5.0
25Content-Type: text/html; charset=iso-8859-1
26Content-Length: 32
27
28Finally, this is the real page!
29</data1002>
30
31<datacheck>
32HTTP/1.1 401 Now gimme that second request of crap
33Server: Microsoft-IIS/5.0
34Content-Type: text/html; charset=iso-8859-1
35Content-Length: 34
36WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
37
38HTTP/1.1 200 Things are fine in server land swsclose
39Server: Microsoft-IIS/5.0
40Content-Type: text/html; charset=iso-8859-1
41Content-Length: 32
42
43Finally, this is the real page!
44</datacheck>
45
46</reply>
47
48# Client-side
49<client>
50<features>
51NTLM
52</features>
53<server>
54http
55</server>
56 <name>
57HTTP with NTLM authorization when talking HTTP/1.0
58 </name>
59 <setenv>
60# we force our own host name, in order to make the test machine independent
61CURL_GETHOSTNAME=curlhost
62# we try to use the LD_PRELOAD hack, if not a debug build
63LD_PRELOAD=%PWD/libtest/.libs/libhostname.so
64 </setenv>
65 <command>
66http://%HOSTIP:%HTTPPORT/159 -u testuser:testpass --ntlm -0
67</command>
68<precheck>
69chkhostname curlhost
70</precheck>
71</client>
72
73# Verify data after the test has been "shot"
74<verify>
75<strip>
76^User-Agent:.*
77</strip>
78<protocol>
79GET /159 HTTP/1.0
80Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
81User-Agent: curl/7.10.6-pre1 (i686-pc-linux-gnu) libcurl/7.10.6-pre1 OpenSSL/0.9.7a ipv6 zlib/1.1.3
82Host: %HOSTIP:%HTTPPORT
83Accept: */*
84
85GET /159 HTTP/1.0
86Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAAIAAgAeAAAAAAAAAAAAAAABoKBAFpkQwKRCZFMhjj0tw47wEjKHRHlvzfxQamFcheMuv8v+xeqphEO5V41xRd7R9deOXRlc3R1c2VyY3VybGhvc3Q=
87User-Agent: curl/7.10.6-pre1 (i686-pc-linux-gnu) libcurl/7.10.6-pre1 OpenSSL/0.9.7a ipv6 zlib/1.1.3
88Host: %HOSTIP:%HTTPPORT
89Accept: */*
90
91</protocol>
92</verify>
93</testcase>
94