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 data after the test has been "shot"
QUIT
USER anonymous
PASS ftp@example.com
PWD
MDTM %TESTNUMBER
EPSV
TYPE I
SIZE %TESTNUMBER
RETR %TESTNUMBER
QUIT
# 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)'