FTP
EPSV
RETR
--remote-time
# Server-side
file data
213 20090213233130
# Client-side
ftp
FTP with --remote-time
ftp://%HOSTIP:%FTPPORT/%TESTNUMBER --remote-time
# Verify the mtime of the file. The mtime is specifically chosen to be an even
# number so that it can be represented exactly on a FAT filesystem.
perl -e 'exit((stat("%LOGDIR/curl%TESTNUMBER.out"))[9] != 1234567890)'
# Verify data after the test has been "shot"
USER anonymous
PASS ftp@example.com
PWD
MDTM %TESTNUMBER
EPSV
TYPE I
SIZE %TESTNUMBER
RETR %TESTNUMBER
QUIT