xref: /aosp_15_r20/external/curl/tests/data/test588 (revision 6236dae45794135f37c4eb022389c904c8b0090d)
1*6236dae4SAndroid Build Coastguard Worker<testcase>
2*6236dae4SAndroid Build Coastguard Worker#
3*6236dae4SAndroid Build Coastguard Worker# This test is exactly like 525 but the server rejects the EPRT command.
4*6236dae4SAndroid Build Coastguard Worker# Written up to make sure that there's nothing in the multi interface
5*6236dae4SAndroid Build Coastguard Worker# active connection case that differs between PORT and EPRT use
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 Worker</keywords>
15*6236dae4SAndroid Build Coastguard Worker</info>
16*6236dae4SAndroid Build Coastguard Worker
17*6236dae4SAndroid Build Coastguard Worker# Server-side
18*6236dae4SAndroid Build Coastguard Worker<reply>
19*6236dae4SAndroid Build Coastguard Worker<data>
20*6236dae4SAndroid Build Coastguard Worker</data>
21*6236dae4SAndroid Build Coastguard Worker<servercmd>
22*6236dae4SAndroid Build Coastguard WorkerREPLY EPRT 500 we don't like EPRT now
23*6236dae4SAndroid Build Coastguard Worker</servercmd>
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 Workerftp
30*6236dae4SAndroid Build Coastguard Worker</server>
31*6236dae4SAndroid Build Coastguard Worker<tool>
32*6236dae4SAndroid Build Coastguard Workerlib525
33*6236dae4SAndroid Build Coastguard Worker</tool>
34*6236dae4SAndroid Build Coastguard Worker<name>
35*6236dae4SAndroid Build Coastguard WorkerFTP PORT upload using multi interface, EPRT doesn't work
36*6236dae4SAndroid Build Coastguard Worker</name>
37*6236dae4SAndroid Build Coastguard Worker<command>
38*6236dae4SAndroid Build Coastguard Workerftp://%HOSTIP:%FTPPORT/path/%TESTNUMBER %LOGDIR/upload%TESTNUMBER
39*6236dae4SAndroid Build Coastguard Worker</command>
40*6236dae4SAndroid Build Coastguard Worker<file name="%LOGDIR/upload%TESTNUMBER">
41*6236dae4SAndroid Build Coastguard WorkerMoooooooooooo
42*6236dae4SAndroid Build Coastguard Worker upload this
43*6236dae4SAndroid Build Coastguard Worker</file>
44*6236dae4SAndroid Build Coastguard Worker</client>
45*6236dae4SAndroid Build Coastguard Worker
46*6236dae4SAndroid Build Coastguard Worker# Verify data after the test has been "shot"
47*6236dae4SAndroid Build Coastguard Worker<verify>
48*6236dae4SAndroid Build Coastguard Worker<strip>
49*6236dae4SAndroid Build Coastguard WorkerQUIT
50*6236dae4SAndroid Build Coastguard Worker</strip>
51*6236dae4SAndroid Build Coastguard Worker# Strip off parts of the PORT and EPRT commands that might differ
52*6236dae4SAndroid Build Coastguard Worker<strippart>
53*6236dae4SAndroid Build Coastguard Workers/^PORT (.*)/PORT/
54*6236dae4SAndroid Build Coastguard Workers/^EPRT \|1\|(.*)/EPRT \|1\|/
55*6236dae4SAndroid Build Coastguard Worker</strippart>
56*6236dae4SAndroid Build Coastguard Worker<protocol>
57*6236dae4SAndroid Build Coastguard WorkerUSER anonymous
58*6236dae4SAndroid Build Coastguard WorkerPASS [email protected]
59*6236dae4SAndroid Build Coastguard WorkerPWD
60*6236dae4SAndroid Build Coastguard WorkerCWD path
61*6236dae4SAndroid Build Coastguard WorkerEPRT |1|
62*6236dae4SAndroid Build Coastguard WorkerPORT
63*6236dae4SAndroid Build Coastguard WorkerTYPE I
64*6236dae4SAndroid Build Coastguard WorkerSTOR %TESTNUMBER
65*6236dae4SAndroid Build Coastguard WorkerQUIT
66*6236dae4SAndroid Build Coastguard Worker</protocol>
67*6236dae4SAndroid Build Coastguard Worker<upload>
68*6236dae4SAndroid Build Coastguard WorkerMoooooooooooo
69*6236dae4SAndroid Build Coastguard Worker upload this
70*6236dae4SAndroid Build Coastguard Worker</upload>
71*6236dae4SAndroid Build Coastguard Worker</verify>
72*6236dae4SAndroid Build Coastguard Worker</testcase>
73