| 1 |
# Server-side |
| 2 |
<reply> |
| 3 |
<data> |
| 4 |
this is file contents |
| 5 |
</data> |
| 6 |
<size> |
| 7 |
-1 |
| 8 |
</size> |
| 9 |
</reply> |
| 10 |
|
| 11 |
# Client-side |
| 12 |
<client> |
| 13 |
<server> |
| 14 |
ftp |
| 15 |
</server> |
| 16 |
<name> |
| 17 |
FTP download without size in RETR string and no SIZE command |
| 18 |
</name> |
| 19 |
<command> |
| 20 |
ftp://%HOSTIP:%FTPPORT/blalbla/lululul/138 |
| 21 |
</command> |
| 22 |
<file name="log/ftpserver.cmd"> |
| 23 |
RETRNOSIZE |
| 24 |
</file> |
| 25 |
</client> |
| 26 |
|
| 27 |
# Verify data after the test has been "shot" |
| 28 |
<verify> |
| 29 |
<protocol> |
| 30 |
USER anonymous |
| 31 |
PASS [email protected] |
| 32 |
PWD |
| 33 |
CWD blalbla |
| 34 |
CWD lululul |
| 35 |
EPSV |
| 36 |
TYPE I |
| 37 |
SIZE 138 |
| 38 |
RETR 138 |
| 39 |
QUIT |
| 40 |
</protocol> |
| 41 |
</verify> |