| 1 |
<testcase> |
| 2 |
<info> |
| 3 |
<keywords> |
| 4 |
FTP |
| 5 |
RETR |
| 6 |
persistent connection |
| 7 |
</keywords> |
| 8 |
</info> |
| 9 |
|
| 10 |
# Server-side |
| 11 |
<reply> |
| 12 |
<data> |
| 13 |
this is file contents |
| 14 |
</data> |
| 15 |
</reply> |
| 16 |
|
| 17 |
# Client-side |
| 18 |
<client> |
| 19 |
<server> |
| 20 |
ftp |
| 21 |
</server> |
| 22 |
<name> |
| 23 |
persistent FTP with different paths |
| 24 |
</name> |
| 25 |
<command> |
| 26 |
ftp://%HOSTIP:%FTPPORT/first/dir/here/146 ftp://%HOSTIP:%FTPPORT/146 |
| 27 |
</command> |
| 28 |
</client> |
| 29 |
|
| 30 |
# Verify data after the test has been "shot" |
| 31 |
<verify> |
| 32 |
# Strip all valid kinds of PORT and EPRT that curl can send |
| 33 |
<strip> |
| 34 |
^PORT \d{1,3},\d{1,3},\d{1,3},\d{1,3},\d{1,3},\d{1,3} |
| 35 |
^EPRT \|1\|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\|\d{1,5}\| |
| 36 |
</strip> |
| 37 |
<protocol> |
| 38 |
USER anonymous |
| 39 |
PASS [email protected] |
| 40 |
PWD |
| 41 |
CWD first |
| 42 |
CWD dir |
| 43 |
CWD here |
| 44 |
EPSV |
| 45 |
TYPE I |
| 46 |
SIZE 146 |
| 47 |
RETR 146 |
| 48 |
CWD / |
| 49 |
EPSV |
| 50 |
SIZE 146 |
| 51 |
RETR 146 |
| 52 |
QUIT |
| 53 |
</protocol> |
| 54 |
</verify> |
| 55 |
</testcase> |