FTP
EPSV
RETR
post-quote
pre-quote
# Server-side
data
to
see
that FTP
works
so does it?
# Client-side
ftp
ftp download with post- and pre-transfer delete operations
ftp://%HOSTIP:%FTPPORT/%TESTNUMBER -Q "-DELE after_transfer" -Q "DELE before_transfer"
# Verify data after the test has been "shot"
USER anonymous
PASS ftp@example.com
PWD
DELE before_transfer
EPSV
TYPE I
SIZE %TESTNUMBER
RETR %TESTNUMBER
DELE after_transfer
QUIT