test1444 756 B

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