summaryrefslogtreecommitdiff
path: root/tests/data/test1418
blob: 51d2e5f0af64c62abbefeb228c3925ea2ead9a31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
<testcase>
<info>
<keywords>
HTTP
HTTP GET
HTTP NTLM auth
connection re-use
</keywords>
</info>
# Server-side
<reply>
<servercmd>
connection-monitor
</servercmd>

<data>
HTTP/1.1 401 Authentication please!
Content-Length: 20
WWW-Authenticate: Digest realm="loonie", nonce="314156592"
WWW-Authenticate: Basic

Please auth with me
</data>

<data3>
HTTP/1.1 401 Authentication please!
Content-Length: 20
WWW-Authenticate: Digest realm="loonie", nonce="314156592"
WWW-Authenticate: Basic

Please auth with me
</data3>

# This is supposed to be returned when the server gets the second
# Authorization: NTLM line passed-in from the client
<data1000>
HTTP/1.1 200 Things are fine in server land
Server: Microsoft-IIS/5.0
Content-Length: 4

moo
</data1000>

<data1003>
HTTP/1.1 200 OK
Server: Another one/1.0
Content-Length: 4

boo
</data1003>

# This is the first reply after the redirection
<data1011>
HTTP/1.1 200 OK
Server: Microsoft-IIS/5.0
Content-Type: text/html; charset=iso-8859-1
Content-Length: 34

This is not the real page either!
</data1011>

<datacheck>
HTTP/1.1 401 Authentication please!
Content-Length: 20
WWW-Authenticate: Digest realm="loonie", nonce="314156592"
WWW-Authenticate: Basic

HTTP/1.1 200 Things are fine in server land
Server: Microsoft-IIS/5.0
Content-Length: 4

moo
</datacheck>

</reply>

# Client-side
<client>
<server>
http
</server>
<features>
!SSPI
crypto
</features>
 <name>
HTTP with --anyauth and connection re-use
 </name>
 <command>
http://%HOSTIP:%HTTPPORT/1418 -u testuser:testpass --anyauth http://%HOSTIP:%HTTPPORT/14180003
</command>
</client>

# Verify data after the test has been "shot"
<verify>
<protocol>
GET /1418 HTTP/1.1
Host: %HOSTIP:%HTTPPORT
User-Agent: curl/%VERSION
Accept: */*

GET /1418 HTTP/1.1
Host: %HOSTIP:%HTTPPORT
Authorization: Digest username="testuser", realm="loonie", nonce="314156592", uri="/1418", response="986238b7e0077754944c966f56d9bc77"
User-Agent: curl/%VERSION
Accept: */*

GET /14180003 HTTP/1.1
Host: %HOSTIP:%HTTPPORT
User-Agent: curl/%VERSION
Accept: */*

GET /14180003 HTTP/1.1
Host: %HOSTIP:%HTTPPORT
Authorization: Digest username="testuser", realm="loonie", nonce="314156592", uri="/14180003", response="1c6390a67bac3283a9b023402f3b3540"
User-Agent: curl/%VERSION
Accept: */*

[DISCONNECT]
</protocol>
</verify>
</testcase>