xref: /aosp_15_r20/external/curl/tests/data/test592 (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 WorkerNODATACONN421
15*6236dae4SAndroid Build Coastguard Worker</keywords>
16*6236dae4SAndroid Build Coastguard Worker</info>
17*6236dae4SAndroid Build Coastguard Worker
18*6236dae4SAndroid Build Coastguard Worker# Server-side
19*6236dae4SAndroid Build Coastguard Worker<reply>
20*6236dae4SAndroid Build Coastguard Worker<data>
21*6236dae4SAndroid Build Coastguard Worker</data>
22*6236dae4SAndroid Build Coastguard Worker<servercmd>
23*6236dae4SAndroid Build Coastguard WorkerNODATACONN421
24*6236dae4SAndroid Build Coastguard WorkerREPLY EPRT 500 we don't like EPRT now
25*6236dae4SAndroid Build Coastguard Worker</servercmd>
26*6236dae4SAndroid Build Coastguard Worker</reply>
27*6236dae4SAndroid Build Coastguard Worker
28*6236dae4SAndroid Build Coastguard Worker# Client-side
29*6236dae4SAndroid Build Coastguard Worker<client>
30*6236dae4SAndroid Build Coastguard Worker<server>
31*6236dae4SAndroid Build Coastguard Workerftp
32*6236dae4SAndroid Build Coastguard Worker</server>
33*6236dae4SAndroid Build Coastguard Worker<tool>
34*6236dae4SAndroid Build Coastguard Workerlib591
35*6236dae4SAndroid Build Coastguard Worker</tool>
36*6236dae4SAndroid Build Coastguard Worker<name>
37*6236dae4SAndroid Build Coastguard WorkerFTP multi PORT and 421 on upload
38*6236dae4SAndroid Build Coastguard Worker</name>
39*6236dae4SAndroid Build Coastguard Worker<command>
40*6236dae4SAndroid Build Coastguard Workerftp://%HOSTIP:%FTPPORT/path/%TESTNUMBER %FTPTIME2 %LOGDIR/upload%TESTNUMBER
41*6236dae4SAndroid Build Coastguard Worker</command>
42*6236dae4SAndroid Build Coastguard Worker<file name="%LOGDIR/upload%TESTNUMBER">
43*6236dae4SAndroid Build Coastguard WorkerMoooooooooooo for %TESTNUMBER
44*6236dae4SAndroid Build Coastguard Worker upload this
45*6236dae4SAndroid Build Coastguard Worker</file>
46*6236dae4SAndroid Build Coastguard Worker</client>
47*6236dae4SAndroid Build Coastguard Worker
48*6236dae4SAndroid Build Coastguard Worker# Verify data after the test has been "shot"
49*6236dae4SAndroid Build Coastguard Worker<verify>
50*6236dae4SAndroid Build Coastguard Worker<strip>
51*6236dae4SAndroid Build Coastguard WorkerQUIT
52*6236dae4SAndroid Build Coastguard Worker</strip>
53*6236dae4SAndroid Build Coastguard Worker# Strip off parts of the PORT and EPRT commands that might differ
54*6236dae4SAndroid Build Coastguard Worker<strippart>
55*6236dae4SAndroid Build Coastguard Workers/^PORT (.*)/PORT/
56*6236dae4SAndroid Build Coastguard Workers/^EPRT \|1\|(.*)/EPRT \|1\|/
57*6236dae4SAndroid Build Coastguard Worker</strippart>
58*6236dae4SAndroid Build Coastguard Worker# a 421 response must prevent further commands from being sent
59*6236dae4SAndroid Build Coastguard Worker<protocol>
60*6236dae4SAndroid Build Coastguard WorkerUSER anonymous
61*6236dae4SAndroid Build Coastguard WorkerPASS [email protected]
62*6236dae4SAndroid Build Coastguard WorkerPWD
63*6236dae4SAndroid Build Coastguard WorkerCWD path
64*6236dae4SAndroid Build Coastguard WorkerEPRT |1|
65*6236dae4SAndroid Build Coastguard WorkerPORT
66*6236dae4SAndroid Build Coastguard WorkerTYPE I
67*6236dae4SAndroid Build Coastguard WorkerSTOR %TESTNUMBER
68*6236dae4SAndroid Build Coastguard WorkerQUIT
69*6236dae4SAndroid Build Coastguard Worker</protocol>
70*6236dae4SAndroid Build Coastguard Worker# CURLE_FTP_ACCEPT_FAILED = 10
71*6236dae4SAndroid Build Coastguard Worker<errorcode>
72*6236dae4SAndroid Build Coastguard Worker10
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