xref: /aosp_15_r20/external/curl/tests/data/test1055 (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 PUT
6*6236dae4SAndroid Build Coastguard Workerfollowlocation
7*6236dae4SAndroid Build Coastguard WorkerFTP
8*6236dae4SAndroid Build Coastguard WorkerEPSV
9*6236dae4SAndroid Build Coastguard WorkerSTOR
10*6236dae4SAndroid Build Coastguard Worker</keywords>
11*6236dae4SAndroid Build Coastguard Worker</info>
12*6236dae4SAndroid Build Coastguard Worker
13*6236dae4SAndroid Build Coastguard Worker#
14*6236dae4SAndroid Build Coastguard Worker# Server-side
15*6236dae4SAndroid Build Coastguard Worker<reply>
16*6236dae4SAndroid Build Coastguard Worker<data>
17*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 307 OK
18*6236dae4SAndroid Build Coastguard WorkerDate: Tue, 09 Nov 2010 14:49:00 GMT
19*6236dae4SAndroid Build Coastguard WorkerServer: test-server/fake swsclose
20*6236dae4SAndroid Build Coastguard WorkerContent-Type: text/html
21*6236dae4SAndroid Build Coastguard WorkerLocation: ftp://%HOSTIP:%FTPPORT/%TESTNUMBER
22*6236dae4SAndroid Build Coastguard WorkerContent-Length: 0
23*6236dae4SAndroid Build Coastguard WorkerConnection: close
24*6236dae4SAndroid Build Coastguard Worker
25*6236dae4SAndroid Build Coastguard Worker</data>
26*6236dae4SAndroid Build Coastguard Worker</reply>
27*6236dae4SAndroid Build Coastguard Worker
28*6236dae4SAndroid Build Coastguard Worker#
29*6236dae4SAndroid Build Coastguard Worker# Client-side
30*6236dae4SAndroid Build Coastguard Worker<client>
31*6236dae4SAndroid Build Coastguard Worker<server>
32*6236dae4SAndroid Build Coastguard Workerhttp
33*6236dae4SAndroid Build Coastguard Workerftp
34*6236dae4SAndroid Build Coastguard Worker</server>
35*6236dae4SAndroid Build Coastguard Worker<name>
36*6236dae4SAndroid Build Coastguard WorkerHTTP PUT Location: redirect to FTP URL
37*6236dae4SAndroid Build Coastguard Worker</name>
38*6236dae4SAndroid Build Coastguard Worker<command>
39*6236dae4SAndroid Build Coastguard Workerhttp://%HOSTIP:%HTTPPORT/%TESTNUMBER -L -T %LOGDIR/test%TESTNUMBER.txt
40*6236dae4SAndroid Build Coastguard Worker</command>
41*6236dae4SAndroid Build Coastguard Worker<file name="%LOGDIR/test%TESTNUMBER.txt">
42*6236dae4SAndroid Build Coastguard WorkerWeird
43*6236dae4SAndroid Build Coastguard Worker     file
44*6236dae4SAndroid Build Coastguard Worker         to
45*6236dae4SAndroid Build Coastguard Worker   upload
46*6236dae4SAndroid Build Coastguard Workerfor
47*6236dae4SAndroid Build Coastguard Worker   testing
48*6236dae4SAndroid Build Coastguard Workerthe
49*6236dae4SAndroid Build Coastguard Worker   PUT
50*6236dae4SAndroid Build Coastguard Worker      feature
51*6236dae4SAndroid Build Coastguard Worker</file>
52*6236dae4SAndroid Build Coastguard Worker</client>
53*6236dae4SAndroid Build Coastguard Worker
54*6236dae4SAndroid Build Coastguard Worker#
55*6236dae4SAndroid Build Coastguard Worker# Verify data after the test has been "shot"
56*6236dae4SAndroid Build Coastguard Worker<verify>
57*6236dae4SAndroid Build Coastguard Worker<strip>
58*6236dae4SAndroid Build Coastguard WorkerQUIT
59*6236dae4SAndroid Build Coastguard Worker</strip>
60*6236dae4SAndroid Build Coastguard Worker<protocol>
61*6236dae4SAndroid Build Coastguard WorkerPUT /%TESTNUMBER HTTP/1.1
62*6236dae4SAndroid Build Coastguard WorkerHost: %HOSTIP:%HTTPPORT
63*6236dae4SAndroid Build Coastguard WorkerUser-Agent: curl/%VERSION
64*6236dae4SAndroid Build Coastguard WorkerAccept: */*
65*6236dae4SAndroid Build Coastguard WorkerContent-Length: 78
66*6236dae4SAndroid Build Coastguard Worker
67*6236dae4SAndroid Build Coastguard WorkerWeird
68*6236dae4SAndroid Build Coastguard Worker     file
69*6236dae4SAndroid Build Coastguard Worker         to
70*6236dae4SAndroid Build Coastguard Worker   upload
71*6236dae4SAndroid Build Coastguard Workerfor
72*6236dae4SAndroid Build Coastguard Worker   testing
73*6236dae4SAndroid Build Coastguard Workerthe
74*6236dae4SAndroid Build Coastguard Worker   PUT
75*6236dae4SAndroid Build Coastguard Worker      feature
76*6236dae4SAndroid Build Coastguard WorkerUSER anonymous
77*6236dae4SAndroid Build Coastguard WorkerPASS [email protected]
78*6236dae4SAndroid Build Coastguard WorkerPWD
79*6236dae4SAndroid Build Coastguard WorkerEPSV
80*6236dae4SAndroid Build Coastguard WorkerTYPE I
81*6236dae4SAndroid Build Coastguard WorkerSTOR %TESTNUMBER
82*6236dae4SAndroid Build Coastguard WorkerQUIT
83*6236dae4SAndroid Build Coastguard Worker</protocol>
84*6236dae4SAndroid Build Coastguard Worker<upload>
85*6236dae4SAndroid Build Coastguard WorkerWeird
86*6236dae4SAndroid Build Coastguard Worker     file
87*6236dae4SAndroid Build Coastguard Worker         to
88*6236dae4SAndroid Build Coastguard Worker   upload
89*6236dae4SAndroid Build Coastguard Workerfor
90*6236dae4SAndroid Build Coastguard Worker   testing
91*6236dae4SAndroid Build Coastguard Workerthe
92*6236dae4SAndroid Build Coastguard Worker   PUT
93*6236dae4SAndroid Build Coastguard Worker      feature
94*6236dae4SAndroid Build Coastguard Worker</upload>
95*6236dae4SAndroid Build Coastguard Worker</verify>
96*6236dae4SAndroid Build Coastguard Worker</testcase>
97