xref: /curl/tests/data/test1079 (revision 3fd80c7b)
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP GET
6HTTP Digest auth
7</keywords>
8</info>
9
10# Server-side
11<reply>
12<data>
13HTTP/1.1 401 Authorization Required swsclose
14Server: Apache/1.3.27 (Darwin) PHP/4.1.2
15WWW-Authenticate: Digest realm="testrealm", nonce="1053604145"
16Content-Type: text/plain; charset=iso-8859-1
17Content-Length: 26
18
19This is not the real page
20</data>
21
22# This is supposed to be returned when the server gets a
23# Authorization: Digest line passed-in from the client
24# Send nothing to force an error code 52 reply
25<data1000>
26</data1000>
27
28<datacheck>
29HTTP/1.1 401 Authorization Required swsclose
30Server: Apache/1.3.27 (Darwin) PHP/4.1.2
31WWW-Authenticate: Digest realm="testrealm", nonce="1053604145"
32Content-Type: text/plain; charset=iso-8859-1
33Content-Length: 26
34
35</datacheck>
36
37</reply>
38
39# Client-side
40<client>
41<server>
42http
43</server>
44<features>
45!SSPI
46crypto
47</features>
48<name>
49HTTP retry after closed connection and empty response
50</name>
51<command>
52http://%HOSTIP:%HTTPPORT/%TESTNUMBER -u testuser:testpass --digest
53</command>
54</client>
55
56# Verify data after the test has been "shot"
57<verify>
58<errorcode>
5952
60</errorcode>
61<protocol>
62GET /%TESTNUMBER HTTP/1.1
63Host: %HOSTIP:%HTTPPORT
64User-Agent: curl/%VERSION
65Accept: */*
66
67GET /%TESTNUMBER HTTP/1.1
68Host: %HOSTIP:%HTTPPORT
69Authorization: Digest username="testuser", realm="testrealm", nonce="1053604145", uri="/%TESTNUMBER", response="e340c7cdca0950462070f46ee139e9f7"
70User-Agent: curl/%VERSION
71Accept: */*
72
73</protocol>
74</verify>
75</testcase>
76