xref: /aosp_15_r20/external/curl/tests/data/test565 (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 POST
6*6236dae4SAndroid Build Coastguard WorkerHTTP Digest auth
7*6236dae4SAndroid Build Coastguard Workerchunked Transfer-Encoding
8*6236dae4SAndroid Build Coastguard Worker</keywords>
9*6236dae4SAndroid Build Coastguard Worker</info>
10*6236dae4SAndroid Build Coastguard Worker#
11*6236dae4SAndroid Build Coastguard Worker# Server-side
12*6236dae4SAndroid Build Coastguard Worker<reply>
13*6236dae4SAndroid Build Coastguard Worker<data>
14*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 100 Continue
15*6236dae4SAndroid Build Coastguard WorkerServer: Microsoft-IIS/5.0
16*6236dae4SAndroid Build Coastguard WorkerDate: Sun, 03 Apr 2005 14:57:45 GMT
17*6236dae4SAndroid Build Coastguard WorkerX-Powered-By: ASP.NET
18*6236dae4SAndroid Build Coastguard Worker
19*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 401 authentication please swsbounce
20*6236dae4SAndroid Build Coastguard WorkerServer: Microsoft-IIS/6.0
21*6236dae4SAndroid Build Coastguard WorkerWWW-Authenticate: Digest realm="testrealm", nonce="1053604144"
22*6236dae4SAndroid Build Coastguard WorkerContent-Type: text/html; charset=iso-8859-1
23*6236dae4SAndroid Build Coastguard WorkerContent-Length: 0
24*6236dae4SAndroid Build Coastguard Worker
25*6236dae4SAndroid Build Coastguard Worker</data>
26*6236dae4SAndroid Build Coastguard Worker<data1>
27*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 200 A OK
28*6236dae4SAndroid Build Coastguard WorkerServer: Microsoft-IIS/6.0
29*6236dae4SAndroid Build Coastguard WorkerContent-Type: text/html; charset=iso-8859-1
30*6236dae4SAndroid Build Coastguard WorkerContent-Length: 3
31*6236dae4SAndroid Build Coastguard Worker
32*6236dae4SAndroid Build Coastguard Workerok
33*6236dae4SAndroid Build Coastguard Worker</data1>
34*6236dae4SAndroid Build Coastguard Worker<datacheck>
35*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 100 Continue
36*6236dae4SAndroid Build Coastguard WorkerServer: Microsoft-IIS/5.0
37*6236dae4SAndroid Build Coastguard WorkerDate: Sun, 03 Apr 2005 14:57:45 GMT
38*6236dae4SAndroid Build Coastguard WorkerX-Powered-By: ASP.NET
39*6236dae4SAndroid Build Coastguard Worker
40*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 401 authentication please swsbounce
41*6236dae4SAndroid Build Coastguard WorkerServer: Microsoft-IIS/6.0
42*6236dae4SAndroid Build Coastguard WorkerWWW-Authenticate: Digest realm="testrealm", nonce="1053604144"
43*6236dae4SAndroid Build Coastguard WorkerContent-Type: text/html; charset=iso-8859-1
44*6236dae4SAndroid Build Coastguard WorkerContent-Length: 0
45*6236dae4SAndroid Build Coastguard Worker
46*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 200 A OK
47*6236dae4SAndroid Build Coastguard WorkerServer: Microsoft-IIS/6.0
48*6236dae4SAndroid Build Coastguard WorkerContent-Type: text/html; charset=iso-8859-1
49*6236dae4SAndroid Build Coastguard WorkerContent-Length: 3
50*6236dae4SAndroid Build Coastguard Worker
51*6236dae4SAndroid Build Coastguard Workerok
52*6236dae4SAndroid Build Coastguard Worker</datacheck>
53*6236dae4SAndroid Build Coastguard Worker</reply>
54*6236dae4SAndroid Build Coastguard Worker
55*6236dae4SAndroid Build Coastguard Worker# Client-side
56*6236dae4SAndroid Build Coastguard Worker<client>
57*6236dae4SAndroid Build Coastguard Worker<server>
58*6236dae4SAndroid Build Coastguard Workerhttp
59*6236dae4SAndroid Build Coastguard Worker</server>
60*6236dae4SAndroid Build Coastguard Worker<features>
61*6236dae4SAndroid Build Coastguard Worker!SSPI
62*6236dae4SAndroid Build Coastguard Workercrypto
63*6236dae4SAndroid Build Coastguard Worker</features>
64*6236dae4SAndroid Build Coastguard Worker# tool is what to use instead of 'curl'
65*6236dae4SAndroid Build Coastguard Worker<tool>
66*6236dae4SAndroid Build Coastguard Workerlib%TESTNUMBER
67*6236dae4SAndroid Build Coastguard Worker</tool>
68*6236dae4SAndroid Build Coastguard Worker
69*6236dae4SAndroid Build Coastguard Worker<name>
70*6236dae4SAndroid Build Coastguard Workersend HTTP POST using read callback, chunked transfer-encoding and Digest
71*6236dae4SAndroid Build Coastguard Worker</name>
72*6236dae4SAndroid Build Coastguard Worker<command>
73*6236dae4SAndroid Build Coastguard Workerhttp://%HOSTIP:%HTTPPORT/%TESTNUMBER
74*6236dae4SAndroid Build Coastguard Worker</command>
75*6236dae4SAndroid Build Coastguard Worker</client>
76*6236dae4SAndroid Build Coastguard Worker
77*6236dae4SAndroid Build Coastguard Worker#
78*6236dae4SAndroid Build Coastguard Worker# Verify data after the test has been "shot"
79*6236dae4SAndroid Build Coastguard Worker<verify>
80*6236dae4SAndroid Build Coastguard Worker<protocol>
81*6236dae4SAndroid Build Coastguard WorkerPOST /%TESTNUMBER HTTP/1.1
82*6236dae4SAndroid Build Coastguard WorkerHost: %HOSTIP:%HTTPPORT
83*6236dae4SAndroid Build Coastguard WorkerAccept: */*
84*6236dae4SAndroid Build Coastguard WorkerTransfer-Encoding: chunked
85*6236dae4SAndroid Build Coastguard WorkerContent-Type: application/x-www-form-urlencoded
86*6236dae4SAndroid Build Coastguard Worker
87*6236dae4SAndroid Build Coastguard Worker0
88*6236dae4SAndroid Build Coastguard Worker
89*6236dae4SAndroid Build Coastguard WorkerPOST /%TESTNUMBER HTTP/1.1
90*6236dae4SAndroid Build Coastguard WorkerHost: %HOSTIP:%HTTPPORT
91*6236dae4SAndroid Build Coastguard WorkerAuthorization: Digest username="foo", realm="testrealm", nonce="1053604144", uri="/%TESTNUMBER", response="877424f750af047634dbd94f9933217b"
92*6236dae4SAndroid Build Coastguard WorkerAccept: */*
93*6236dae4SAndroid Build Coastguard WorkerTransfer-Encoding: chunked
94*6236dae4SAndroid Build Coastguard WorkerContent-Type: application/x-www-form-urlencoded
95*6236dae4SAndroid Build Coastguard WorkerExpect: 100-continue
96*6236dae4SAndroid Build Coastguard Worker
97*6236dae4SAndroid Build Coastguard Worker3
98*6236dae4SAndroid Build Coastguard Workerone
99*6236dae4SAndroid Build Coastguard Worker3
100*6236dae4SAndroid Build Coastguard Workertwo
101*6236dae4SAndroid Build Coastguard Worker5
102*6236dae4SAndroid Build Coastguard Workerthree
103*6236dae4SAndroid Build Coastguard Worker%if hyper
104*6236dae4SAndroid Build Coastguard Worker1D
105*6236dae4SAndroid Build Coastguard Worker%else
106*6236dae4SAndroid Build Coastguard Worker1d
107*6236dae4SAndroid Build Coastguard Worker%endif
108*6236dae4SAndroid Build Coastguard Workerand a final longer crap: four
109*6236dae4SAndroid Build Coastguard Worker0
110*6236dae4SAndroid Build Coastguard Worker
111*6236dae4SAndroid Build Coastguard Worker</protocol>
112*6236dae4SAndroid Build Coastguard Worker</verify>
113*6236dae4SAndroid Build Coastguard Worker</testcase>
114