xref: /aosp_15_r20/external/curl/tests/data/test594 (revision 6236dae45794135f37c4eb022389c904c8b0090d)
1*6236dae4SAndroid Build Coastguard Worker<testcase>
2*6236dae4SAndroid Build Coastguard Worker#
3*6236dae4SAndroid Build Coastguard Worker# For this test the server rejects the EPRT command,
4*6236dae4SAndroid Build Coastguard Worker# code in lib591 makes use of curl_multi_timeout()
5*6236dae4SAndroid Build Coastguard Worker# and server does not establish data connection.
6*6236dae4SAndroid Build Coastguard Worker#
7*6236dae4SAndroid Build Coastguard Worker<info>
8*6236dae4SAndroid Build Coastguard Worker<keywords>
9*6236dae4SAndroid Build Coastguard WorkerFTP
10*6236dae4SAndroid Build Coastguard WorkerPORT
11*6236dae4SAndroid Build Coastguard WorkerSTOR
12*6236dae4SAndroid Build Coastguard Workermulti
13*6236dae4SAndroid Build Coastguard WorkerEPRT refused
14*6236dae4SAndroid Build Coastguard WorkerNODATACONN
15*6236dae4SAndroid Build Coastguard Workertimeout
16*6236dae4SAndroid Build Coastguard WorkerFAILURE
17*6236dae4SAndroid Build Coastguard Worker</keywords>
18*6236dae4SAndroid Build Coastguard Worker</info>
19*6236dae4SAndroid Build Coastguard Worker
20*6236dae4SAndroid Build Coastguard Worker# Server-side
21*6236dae4SAndroid Build Coastguard Worker<reply>
22*6236dae4SAndroid Build Coastguard Worker<data>
23*6236dae4SAndroid Build Coastguard Worker</data>
24*6236dae4SAndroid Build Coastguard Worker<servercmd>
25*6236dae4SAndroid Build Coastguard WorkerNODATACONN
26*6236dae4SAndroid Build Coastguard WorkerREPLY EPRT 500 we don't like EPRT now
27*6236dae4SAndroid Build Coastguard Worker</servercmd>
28*6236dae4SAndroid Build Coastguard Worker</reply>
29*6236dae4SAndroid Build Coastguard Worker
30*6236dae4SAndroid Build Coastguard Worker# Client-side
31*6236dae4SAndroid Build Coastguard Worker<client>
32*6236dae4SAndroid Build Coastguard Worker<server>
33*6236dae4SAndroid Build Coastguard Workerftp
34*6236dae4SAndroid Build Coastguard Worker</server>
35*6236dae4SAndroid Build Coastguard Worker<tool>
36*6236dae4SAndroid Build Coastguard Workerlib591
37*6236dae4SAndroid Build Coastguard Worker</tool>
38*6236dae4SAndroid Build Coastguard Worker<name>
39*6236dae4SAndroid Build Coastguard WorkerFTP multi PORT upload, no data conn and no positive prelim. reply
40*6236dae4SAndroid Build Coastguard Worker</name>
41*6236dae4SAndroid Build Coastguard Worker<command>
42*6236dae4SAndroid Build Coastguard Workerftp://%HOSTIP:%FTPPORT/path/%TESTNUMBER %FTPTIME2 %LOGDIR/upload%TESTNUMBER
43*6236dae4SAndroid Build Coastguard Worker</command>
44*6236dae4SAndroid Build Coastguard Worker<file name="%LOGDIR/upload%TESTNUMBER">
45*6236dae4SAndroid Build Coastguard WorkerMoooooooooooo for %TESTNUMBER
46*6236dae4SAndroid Build Coastguard Worker upload this
47*6236dae4SAndroid Build Coastguard Worker</file>
48*6236dae4SAndroid Build Coastguard Worker</client>
49*6236dae4SAndroid Build Coastguard Worker
50*6236dae4SAndroid Build Coastguard Worker# Verify data after the test has been "shot"
51*6236dae4SAndroid Build Coastguard Worker<verify>
52*6236dae4SAndroid Build Coastguard Worker<strip>
53*6236dae4SAndroid Build Coastguard WorkerQUIT
54*6236dae4SAndroid Build Coastguard Worker</strip>
55*6236dae4SAndroid Build Coastguard Worker# Strip off parts of the PORT and EPRT commands that might differ
56*6236dae4SAndroid Build Coastguard Worker<strippart>
57*6236dae4SAndroid Build Coastguard Workers/^PORT (.*)/PORT/
58*6236dae4SAndroid Build Coastguard Workers/^EPRT \|1\|(.*)/EPRT \|1\|/
59*6236dae4SAndroid Build Coastguard Worker</strippart>
60*6236dae4SAndroid Build Coastguard Worker<protocol>
61*6236dae4SAndroid Build Coastguard WorkerUSER anonymous
62*6236dae4SAndroid Build Coastguard WorkerPASS [email protected]
63*6236dae4SAndroid Build Coastguard WorkerPWD
64*6236dae4SAndroid Build Coastguard WorkerCWD path
65*6236dae4SAndroid Build Coastguard WorkerEPRT |1|
66*6236dae4SAndroid Build Coastguard WorkerPORT
67*6236dae4SAndroid Build Coastguard WorkerTYPE I
68*6236dae4SAndroid Build Coastguard WorkerSTOR %TESTNUMBER
69*6236dae4SAndroid Build Coastguard WorkerQUIT
70*6236dae4SAndroid Build Coastguard Worker</protocol>
71*6236dae4SAndroid Build Coastguard Worker<errorcode>
72*6236dae4SAndroid Build Coastguard Worker28
73*6236dae4SAndroid Build Coastguard Worker</errorcode>
74*6236dae4SAndroid Build Coastguard Worker<upload>
75*6236dae4SAndroid Build Coastguard Worker</upload>
76*6236dae4SAndroid Build Coastguard Worker</verify>
77*6236dae4SAndroid Build Coastguard Worker</testcase>
78