xref: /aosp_15_r20/external/curl/tests/data/test1041 (revision 6236dae45794135f37c4eb022389c904c8b0090d)
1*6236dae4SAndroid Build Coastguard Worker<testcase>
2*6236dae4SAndroid Build Coastguard Worker# Similar to test33
3*6236dae4SAndroid Build Coastguard Worker<info>
4*6236dae4SAndroid Build Coastguard Worker<keywords>
5*6236dae4SAndroid Build Coastguard WorkerHTTP
6*6236dae4SAndroid Build Coastguard WorkerHTTP PUT
7*6236dae4SAndroid Build Coastguard WorkerResume
8*6236dae4SAndroid Build Coastguard WorkerContent-Range
9*6236dae4SAndroid Build Coastguard Worker</keywords>
10*6236dae4SAndroid Build Coastguard Worker</info>
11*6236dae4SAndroid Build Coastguard Worker
12*6236dae4SAndroid Build Coastguard Worker# Server-side
13*6236dae4SAndroid Build Coastguard Worker<reply>
14*6236dae4SAndroid Build Coastguard Worker<data>
15*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 200 OK swsclose
16*6236dae4SAndroid Build Coastguard WorkerDate: Tue, 09 Nov 2010 14:49:00 GMT
17*6236dae4SAndroid Build Coastguard WorkerServer: test-server/fake
18*6236dae4SAndroid Build Coastguard WorkerAccept-Ranges: bytes
19*6236dae4SAndroid Build Coastguard WorkerContent-Length: 0
20*6236dae4SAndroid Build Coastguard WorkerConnection: close
21*6236dae4SAndroid Build Coastguard WorkerContent-Type: text/html
22*6236dae4SAndroid Build Coastguard Worker
23*6236dae4SAndroid Build Coastguard Worker</data>
24*6236dae4SAndroid Build Coastguard Worker</reply>
25*6236dae4SAndroid Build Coastguard Worker
26*6236dae4SAndroid Build Coastguard Worker# Client-side
27*6236dae4SAndroid Build Coastguard Worker<client>
28*6236dae4SAndroid Build Coastguard Worker<server>
29*6236dae4SAndroid Build Coastguard Workerhttp
30*6236dae4SAndroid Build Coastguard Worker</server>
31*6236dae4SAndroid Build Coastguard Worker<name>
32*6236dae4SAndroid Build Coastguard WorkerHTTP PUT with resume from end of already-uploaded file
33*6236dae4SAndroid Build Coastguard Worker</name>
34*6236dae4SAndroid Build Coastguard Worker<file name="%LOGDIR/test%TESTNUMBER.txt">
35*6236dae4SAndroid Build Coastguard Worker012345678
36*6236dae4SAndroid Build Coastguard Worker012345678
37*6236dae4SAndroid Build Coastguard Worker012345678
38*6236dae4SAndroid Build Coastguard Worker012345678
39*6236dae4SAndroid Build Coastguard Worker012345678
40*6236dae4SAndroid Build Coastguard Worker012345678
41*6236dae4SAndroid Build Coastguard Worker012345678
42*6236dae4SAndroid Build Coastguard Worker012345678
43*6236dae4SAndroid Build Coastguard Worker012345678
44*6236dae4SAndroid Build Coastguard Worker012345678
45*6236dae4SAndroid Build Coastguard Worker</file>
46*6236dae4SAndroid Build Coastguard Worker<command>
47*6236dae4SAndroid Build Coastguard Workerhttp://%HOSTIP:%HTTPPORT/%TESTNUMBER -T%LOGDIR/test%TESTNUMBER.txt -C -
48*6236dae4SAndroid Build Coastguard Worker</command>
49*6236dae4SAndroid Build Coastguard Worker</client>
50*6236dae4SAndroid Build Coastguard Worker
51*6236dae4SAndroid Build Coastguard Worker# Verify data after the test has been "shot"
52*6236dae4SAndroid Build Coastguard Worker<verify>
53*6236dae4SAndroid Build Coastguard Worker# curl doesn't do a HEAD request on the remote file so it has no idea whether
54*6236dae4SAndroid Build Coastguard Worker# it can skip part of the file or not.  Instead, it sends the entire file.
55*6236dae4SAndroid Build Coastguard Worker<protocol>
56*6236dae4SAndroid Build Coastguard WorkerPUT /%TESTNUMBER HTTP/1.1
57*6236dae4SAndroid Build Coastguard WorkerHost: %HOSTIP:%HTTPPORT
58*6236dae4SAndroid Build Coastguard WorkerContent-Range: bytes 0-99/100
59*6236dae4SAndroid Build Coastguard WorkerUser-Agent: curl/%VERSION
60*6236dae4SAndroid Build Coastguard WorkerAccept: */*
61*6236dae4SAndroid Build Coastguard WorkerContent-Length: 100
62*6236dae4SAndroid Build Coastguard Worker
63*6236dae4SAndroid Build Coastguard Worker012345678
64*6236dae4SAndroid Build Coastguard Worker012345678
65*6236dae4SAndroid Build Coastguard Worker012345678
66*6236dae4SAndroid Build Coastguard Worker012345678
67*6236dae4SAndroid Build Coastguard Worker012345678
68*6236dae4SAndroid Build Coastguard Worker012345678
69*6236dae4SAndroid Build Coastguard Worker012345678
70*6236dae4SAndroid Build Coastguard Worker012345678
71*6236dae4SAndroid Build Coastguard Worker012345678
72*6236dae4SAndroid Build Coastguard Worker012345678
73*6236dae4SAndroid Build Coastguard Worker</protocol>
74*6236dae4SAndroid Build Coastguard Worker</verify>
75*6236dae4SAndroid Build Coastguard Worker</testcase>
76