1<testcase> 2<info> 3<keywords> 4FTP 5EPSV 6RETR 7--remote-time 8</keywords> 9</info> 10# Server-side 11<reply> 12<data> 13file data 14</data> 15<mdtm> 16213 20090213233130 17</mdtm> 18</reply> 19 20# Client-side 21<client> 22<server> 23ftp 24</server> 25<name> 26FTP with --remote-time 27</name> 28<command> 29ftp://%HOSTIP:%FTPPORT/%TESTNUMBER --remote-time 30</command> 31</client> 32 33# Verify data after the test has been "shot" 34<verify> 35<strip> 36QUIT 37</strip> 38<protocol> 39USER anonymous 40PASS ftp@example.com 41PWD 42MDTM %TESTNUMBER 43EPSV 44TYPE I 45SIZE %TESTNUMBER 46RETR %TESTNUMBER 47QUIT 48</protocol> 49# Verify the mtime of the file. The mtime is specifically chosen to be an even 50# number so that it can be represented exactly on a FAT filesystem. 51<postcheck> 52%PERL -e 'exit((stat("%LOGDIR/curl%TESTNUMBER.out"))[9] != 1234567890)' 53</postcheck> 54</verify> 55</testcase> 56