test121 665 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <testcase>
  2. <info>
  3. <keywords>
  4. FTP
  5. EPSV
  6. RETR
  7. post-quote
  8. pre-quote
  9. </keywords>
  10. </info>
  11. # Server-side
  12. <reply>
  13. <data>
  14. data
  15. to
  16. see
  17. that FTP
  18. works
  19. so does it?
  20. </data>
  21. </reply>
  22. # Client-side
  23. <client>
  24. <server>
  25. ftp
  26. </server>
  27. <name>
  28. ftp download with post- and pre-transfer delete operations
  29. </name>
  30. <command>
  31. ftp://%HOSTIP:%FTPPORT/%TESTNUMBER -Q "-DELE after_transfer" -Q "DELE before_transfer"
  32. </command>
  33. </client>
  34. # Verify data after the test has been "shot"
  35. <verify>
  36. <protocol>
  37. USER anonymous
  38. PASS ftp@example.com
  39. PWD
  40. DELE before_transfer
  41. EPSV
  42. TYPE I
  43. SIZE %TESTNUMBER
  44. RETR %TESTNUMBER
  45. DELE after_transfer
  46. QUIT
  47. </protocol>
  48. </verify>
  49. </testcase>