1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP GET
6HTTP NTLM auth
7connection re-use
8</keywords>
9</info>
10# Server-side
11<reply>
12<servercmd>
13connection-monitor
14</servercmd>
15
16<data>
17HTTP/1.1 401 Authentication please!
18Content-Length: 20
19WWW-Authenticate: Digest realm="loonie", nonce="314156592"
20WWW-Authenticate: Basic
21
22Please auth with me
23</data>
24
25# This is supposed to be returned when the server gets the second
26# Authorization: NTLM line passed-in from the client
27<data1000>
28HTTP/1.1 200 Things are fine in server land
29Server: Microsoft-IIS/5.0
30Content-Length: 4
31
32moo
33</data1000>
34
35<data1003>
36HTTP/1.1 200 OK
37Server: Another one/1.0
38Content-Length: 4
39
40boo
41</data1003>
42
43# This is the first reply after the redirection
44<data1011>
45HTTP/1.1 200 OK
46Server: Microsoft-IIS/5.0
47Content-Type: text/html; charset=iso-8859-1
48Content-Length: 34
49
50This is not the real page either!
51</data1011>
52
53<datacheck>
54HTTP/1.1 401 Authentication please!
55Content-Length: 20
56WWW-Authenticate: Digest realm="loonie", nonce="314156592"
57WWW-Authenticate: Basic
58
59HTTP/1.1 200 Things are fine in server land
60Server: Microsoft-IIS/5.0
61Content-Length: 4
62
63moo
64</datacheck>
65
66</reply>
67
68# Client-side
69<client>
70<server>
71http
72</server>
73<features>
74!SSPI
75crypto
76</features>
77 <name>
78HTTP with --anyauth and connection re-use
79 </name>
80 <command>
81http://%HOSTIP:%HTTPPORT/1418 -u testuser:testpass --anyauth http://%HOSTIP:%HTTPPORT/14180003
82</command>
83</client>
84
85# Verify data after the test has been "shot"
86<verify>
87<strip>
88^User-Agent:.*
89</strip>
90<protocol>
91GET /1418 HTTP/1.1
92Host: %HOSTIP:%HTTPPORT
93Accept: */*
94
95GET /1418 HTTP/1.1
96Host: %HOSTIP:%HTTPPORT
97Authorization: Digest username="testuser", realm="loonie", nonce="314156592", uri="/1418", response="986238b7e0077754944c966f56d9bc77"
98Accept: */*
99
100GET /14180003 HTTP/1.1
101Host: %HOSTIP:%HTTPPORT
102Authorization: Digest username="testuser", realm="loonie", nonce="314156592", uri="/14180003", response="1c6390a67bac3283a9b023402f3b3540"
103Accept: */*
104
105[DISCONNECT]
106</protocol>
107</verify>
108</testcase>
109