| 1 |
# Server-side |
| 2 |
<reply> |
| 3 |
<data> |
| 4 |
data blobb |
| 5 |
</data> |
| 6 |
</datacheck> |
| 7 |
</reply> |
| 8 |
|
| 9 |
# Client-side |
| 10 |
<client> |
| 11 |
<features> |
| 12 |
ipv6 |
| 13 |
</features> |
| 14 |
<server> |
| 15 |
ftp |
| 16 |
</server> |
| 17 |
<name> |
| 18 |
Get two FTP files with no remote EPRT or LPRT support |
| 19 |
</name> |
| 20 |
<command> |
| 21 |
ftp://%HOSTIP:%FTPPORT/a/path/212 ftp://%HOSTIP:%FTPPORT/a/path/212 -P - |
| 22 |
</command> |
| 23 |
<file name="log/ftpserver.cmd"> |
| 24 |
REPLY EPRT 500 no such command |
| 25 |
REPLY LPRT 500 no such command |
| 26 |
</file> |
| 27 |
<stdout> |
| 28 |
data blobb |
| 29 |
data blobb |
| 30 |
</stdout> |
| 31 |
</client> |
| 32 |
|
| 33 |
# Verify data after the test has been "shot" |
| 34 |
<verify> |
| 35 |
<strippart> |
| 36 |
s/^(EPRT \|1\|127.0.0.1).*/$1/ |
| 37 |
s/^(LPRT 4,4,127,0,0,1,).*/$1/ |
| 38 |
s/^(PORT 127,0,0,1,).*/$1/ |
| 39 |
</strippart> |
| 40 |
<protocol> |
| 41 |
USER anonymous |
| 42 |
PASS [email protected] |
| 43 |
PWD |
| 44 |
CWD a |
| 45 |
CWD path |
| 46 |
EPRT |1|127.0.0.1 |
| 47 |
LPRT 4,4,127,0,0,1, |
| 48 |
PORT 127,0,0,1, |
| 49 |
TYPE I |
| 50 |
SIZE 212 |
| 51 |
RETR 212 |
| 52 |
PORT 127,0,0,1, |
| 53 |
TYPE I |
| 54 |
SIZE 212 |
| 55 |
RETR 212 |
| 56 |
QUIT |
| 57 |
</protocol> |
| 58 |
</verify> |