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