| 1 |
# Server-side |
| 2 |
<reply> |
| 3 |
<data> |
| 4 |
</data> |
| 5 |
</reply> |
| 6 |
|
| 7 |
# Client-side |
| 8 |
<client> |
| 9 |
<server> |
| 10 |
ftp |
| 11 |
</server> |
| 12 |
<name> |
| 13 |
FTP NLST dir list without contents, using PORT |
| 14 |
</name> |
| 15 |
<command> |
| 16 |
ftp://%HOSTIP:%FTPPORT/ -P - -l |
| 17 |
</command> |
| 18 |
<file name="log/ftpserver.cmd"> |
| 19 |
REPLY NLST 450 No files found |
| 20 |
</file> |
| 21 |
</client> |
| 22 |
|
| 23 |
# Verify data after the test has been "shot" |
| 24 |
<verify> |
| 25 |
# strip all kinds of PORT, EPRT and LPRT curl can do |
| 26 |
<strip> |
| 27 |
^PORT 127,0,0,1,.* |
| 28 |
^EPRT.* |
| 29 |
^LPRT.* |
| 30 |
</strip> |
| 31 |
<protocol> |
| 32 |
USER anonymous |
| 33 |
PASS [email protected] |
| 34 |
PWD |
| 35 |
PORT 127,0,0,1,243,212 |
| 36 |
TYPE A |
| 37 |
NLST |
| 38 |
QUIT |
| 39 |
</protocol> |
| 40 |
</verify> |