xref: /aosp_15_r20/external/curl/tests/data/test212 (revision 6236dae45794135f37c4eb022389c904c8b0090d)
1*6236dae4SAndroid Build Coastguard Worker<testcase>
2*6236dae4SAndroid Build Coastguard Worker<info>
3*6236dae4SAndroid Build Coastguard Worker<keywords>
4*6236dae4SAndroid Build Coastguard WorkerFTP
5*6236dae4SAndroid Build Coastguard WorkerEPRT
6*6236dae4SAndroid Build Coastguard Worker</keywords>
7*6236dae4SAndroid Build Coastguard Worker</info>
8*6236dae4SAndroid Build Coastguard Worker
9*6236dae4SAndroid Build Coastguard Worker# Server-side
10*6236dae4SAndroid Build Coastguard Worker<reply>
11*6236dae4SAndroid Build Coastguard Worker<data>
12*6236dae4SAndroid Build Coastguard Workerdata blobb
13*6236dae4SAndroid Build Coastguard Worker</data>
14*6236dae4SAndroid Build Coastguard Worker<servercmd>
15*6236dae4SAndroid Build Coastguard WorkerREPLY EPRT 500 no such command
16*6236dae4SAndroid Build Coastguard Worker</servercmd>
17*6236dae4SAndroid Build Coastguard Worker</reply>
18*6236dae4SAndroid Build Coastguard Worker
19*6236dae4SAndroid Build Coastguard Worker# Client-side
20*6236dae4SAndroid Build Coastguard Worker<client>
21*6236dae4SAndroid Build Coastguard Worker<server>
22*6236dae4SAndroid Build Coastguard Workerftp
23*6236dae4SAndroid Build Coastguard Worker</server>
24*6236dae4SAndroid Build Coastguard Worker# EPRT is only sent when IPv6 is enabled
25*6236dae4SAndroid Build Coastguard Worker<features>
26*6236dae4SAndroid Build Coastguard WorkerIPv6
27*6236dae4SAndroid Build Coastguard Worker</features>
28*6236dae4SAndroid Build Coastguard Worker<name>
29*6236dae4SAndroid Build Coastguard WorkerGet two FTP files with no remote EPRT support
30*6236dae4SAndroid Build Coastguard Worker</name>
31*6236dae4SAndroid Build Coastguard Worker<command>
32*6236dae4SAndroid Build Coastguard Workerftp://%HOSTIP:%FTPPORT/a/path/%TESTNUMBER ftp://%HOSTIP:%FTPPORT/a/path/%TESTNUMBER -P -
33*6236dae4SAndroid Build Coastguard Worker</command>
34*6236dae4SAndroid Build Coastguard Worker<stdout>
35*6236dae4SAndroid Build Coastguard Workerdata blobb
36*6236dae4SAndroid Build Coastguard Workerdata blobb
37*6236dae4SAndroid Build Coastguard Worker</stdout>
38*6236dae4SAndroid Build Coastguard Worker</client>
39*6236dae4SAndroid Build Coastguard Worker
40*6236dae4SAndroid Build Coastguard Worker# Verify data after the test has been "shot"
41*6236dae4SAndroid Build Coastguard Worker<verify>
42*6236dae4SAndroid Build Coastguard Worker<strip>
43*6236dae4SAndroid Build Coastguard WorkerQUIT
44*6236dae4SAndroid Build Coastguard Worker</strip>
45*6236dae4SAndroid Build Coastguard Worker# Strip the addresses and port number but leave the rest
46*6236dae4SAndroid Build Coastguard Worker<strippart>
47*6236dae4SAndroid Build Coastguard Workers/^(EPRT \|1\|)\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\|\d{1,5}\|/$1/
48*6236dae4SAndroid Build Coastguard Workers/^(PORT )\d{1,3},\d{1,3},\d{1,3},\d{1,3},\d{1,3},\d{1,3}/$1/
49*6236dae4SAndroid Build Coastguard Worker</strippart>
50*6236dae4SAndroid Build Coastguard Worker<protocol>
51*6236dae4SAndroid Build Coastguard WorkerUSER anonymous
52*6236dae4SAndroid Build Coastguard WorkerPASS [email protected]
53*6236dae4SAndroid Build Coastguard WorkerPWD
54*6236dae4SAndroid Build Coastguard WorkerCWD a
55*6236dae4SAndroid Build Coastguard WorkerCWD path
56*6236dae4SAndroid Build Coastguard WorkerEPRT |1|
57*6236dae4SAndroid Build Coastguard WorkerPORT
58*6236dae4SAndroid Build Coastguard WorkerTYPE I
59*6236dae4SAndroid Build Coastguard WorkerSIZE %TESTNUMBER
60*6236dae4SAndroid Build Coastguard WorkerRETR %TESTNUMBER
61*6236dae4SAndroid Build Coastguard WorkerPORT
62*6236dae4SAndroid Build Coastguard WorkerSIZE %TESTNUMBER
63*6236dae4SAndroid Build Coastguard WorkerRETR %TESTNUMBER
64*6236dae4SAndroid Build Coastguard WorkerQUIT
65*6236dae4SAndroid Build Coastguard Worker</protocol>
66*6236dae4SAndroid Build Coastguard Worker</verify>
67*6236dae4SAndroid Build Coastguard Worker</testcase>
68