xref: /aosp_15_r20/external/curl/tests/data/test599 (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 Workerchunked Transfer-Encoding
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 302 OK
14*6236dae4SAndroid Build Coastguard WorkerDate: Tue, 09 Nov 2010 14:49:00 GMT
15*6236dae4SAndroid Build Coastguard WorkerServer: test-server/fake
16*6236dae4SAndroid Build Coastguard WorkerLocation: %TESTNUMBER0001
17*6236dae4SAndroid Build Coastguard WorkerContent-Length: 6
18*6236dae4SAndroid Build Coastguard WorkerConnection: close
19*6236dae4SAndroid Build Coastguard WorkerContent-Type: text/html
20*6236dae4SAndroid Build Coastguard Worker
21*6236dae4SAndroid Build Coastguard Worker-foo-
22*6236dae4SAndroid Build Coastguard Worker</data>
23*6236dae4SAndroid Build Coastguard Worker<data1>
24*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 200 OK
25*6236dae4SAndroid Build Coastguard WorkerDate: Tue, 09 Nov 2010 14:49:00 GMT
26*6236dae4SAndroid Build Coastguard WorkerServer: test-server/fake
27*6236dae4SAndroid Build Coastguard WorkerTransfer-Encoding: chunked
28*6236dae4SAndroid Build Coastguard WorkerConnection: close
29*6236dae4SAndroid Build Coastguard WorkerContent-Type: text/html
30*6236dae4SAndroid Build Coastguard Worker
31*6236dae4SAndroid Build Coastguard Worker32
32*6236dae4SAndroid Build Coastguard Workerthis data is slightly larger than the first piece
33*6236dae4SAndroid Build Coastguard Worker
34*6236dae4SAndroid Build Coastguard Worker0
35*6236dae4SAndroid Build Coastguard Worker
36*6236dae4SAndroid Build Coastguard Worker</data1>
37*6236dae4SAndroid Build Coastguard Worker
38*6236dae4SAndroid Build Coastguard Worker<datacheck>
39*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 302 OK
40*6236dae4SAndroid Build Coastguard WorkerDate: Tue, 09 Nov 2010 14:49:00 GMT
41*6236dae4SAndroid Build Coastguard WorkerServer: test-server/fake
42*6236dae4SAndroid Build Coastguard WorkerLocation: %TESTNUMBER0001
43*6236dae4SAndroid Build Coastguard WorkerContent-Length: 6
44*6236dae4SAndroid Build Coastguard WorkerConnection: close
45*6236dae4SAndroid Build Coastguard WorkerContent-Type: text/html
46*6236dae4SAndroid Build Coastguard Worker
47*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 200 OK
48*6236dae4SAndroid Build Coastguard WorkerDate: Tue, 09 Nov 2010 14:49:00 GMT
49*6236dae4SAndroid Build Coastguard WorkerServer: test-server/fake
50*6236dae4SAndroid Build Coastguard WorkerTransfer-Encoding: chunked
51*6236dae4SAndroid Build Coastguard WorkerConnection: close
52*6236dae4SAndroid Build Coastguard WorkerContent-Type: text/html
53*6236dae4SAndroid Build Coastguard Worker
54*6236dae4SAndroid Build Coastguard Workerthis data is slightly larger than the first piece
55*6236dae4SAndroid Build Coastguard Worker</datacheck>
56*6236dae4SAndroid Build Coastguard Worker
57*6236dae4SAndroid Build Coastguard Worker</reply>
58*6236dae4SAndroid Build Coastguard Worker
59*6236dae4SAndroid Build Coastguard Worker# Client-side
60*6236dae4SAndroid Build Coastguard Worker<client>
61*6236dae4SAndroid Build Coastguard Worker<server>
62*6236dae4SAndroid Build Coastguard Workerhttp
63*6236dae4SAndroid Build Coastguard Worker</server>
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# Bug 3510057 pointed out that when following a location to a larger chunked
70*6236dae4SAndroid Build Coastguard Worker# encoded page, the first size would still be used in the progress callback
71*6236dae4SAndroid Build Coastguard Worker<name>
72*6236dae4SAndroid Build Coastguard WorkerHTTP GET with progress callback and redirects changing content sizes
73*6236dae4SAndroid Build Coastguard Worker</name>
74*6236dae4SAndroid Build Coastguard Worker<command>
75*6236dae4SAndroid Build Coastguard Workerhttp://%HOSTIP:%HTTPPORT/%TESTNUMBER %LOGDIR/ip%TESTNUMBER
76*6236dae4SAndroid Build Coastguard Worker</command>
77*6236dae4SAndroid Build Coastguard Worker</client>
78*6236dae4SAndroid Build Coastguard Worker
79*6236dae4SAndroid Build Coastguard Worker#
80*6236dae4SAndroid Build Coastguard Worker# Verify data after the test has been "shot"
81*6236dae4SAndroid Build Coastguard Worker<verify>
82*6236dae4SAndroid Build Coastguard Worker<file name="%LOGDIR/ip%TESTNUMBER">
83*6236dae4SAndroid Build Coastguard WorkerCL -1
84*6236dae4SAndroid Build Coastguard Worker</file>
85*6236dae4SAndroid Build Coastguard Worker</verify>
86*6236dae4SAndroid Build Coastguard Worker</testcase>
87