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>
74crypto
75</features>
76 <name>
77HTTP with --anyauth and connection re-use
78 </name>
79 <command>
80http://%HOSTIP:%HTTPPORT/1418 -u testuser:testpass --anyauth http://%HOSTIP:%HTTPPORT/14180003
81</command>
82</client>
83
84# Verify data after the test has been "shot"
85<verify>
86<strip>
87^User-Agent:.*
88</strip>
89<protocol>
90GET /1418 HTTP/1.1
91Host: %HOSTIP:%HTTPPORT
92Accept: */*
93
94GET /1418 HTTP/1.1
95Authorization: Digest username="testuser", realm="loonie", nonce="314156592", uri="/1418", response="986238b7e0077754944c966f56d9bc77"
96Host: %HOSTIP:%HTTPPORT
97Accept: */*
98
99GET /14180003 HTTP/1.1
100Authorization: Digest username="testuser", realm="loonie", nonce="314156592", uri="/14180003", response="1c6390a67bac3283a9b023402f3b3540"
101Host: %HOSTIP:%HTTPPORT
102Accept: */*
103
104[DISCONNECT]
105</protocol>
106</verify>
107</testcase>
108