test146 784 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <testcase>
  2. <info>
  3. <keywords>
  4. FTP
  5. RETR
  6. persistent connection
  7. </keywords>
  8. </info>
  9. # Server-side
  10. <reply>
  11. <data>
  12. this is file contents
  13. </data>
  14. </reply>
  15. # Client-side
  16. <client>
  17. <server>
  18. ftp
  19. </server>
  20. <name>
  21. persistent FTP with different paths
  22. </name>
  23. <command>
  24. ftp://%HOSTIP:%FTPPORT/first/dir/here/146 ftp://%HOSTIP:%FTPPORT/146
  25. </command>
  26. </client>
  27. # Verify data after the test has been "shot"
  28. <verify>
  29. # Strip all valid kinds of PORT and EPRT that curl can send
  30. <strip>
  31. ^PORT \d{1,3},\d{1,3},\d{1,3},\d{1,3},\d{1,3},\d{1,3}
  32. ^EPRT \|1\|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\|\d{1,5}\|
  33. </strip>
  34. <protocol>
  35. USER anonymous
  36. PASS ftp@example.com
  37. PWD
  38. CWD first
  39. CWD dir
  40. CWD here
  41. EPSV
  42. TYPE I
  43. SIZE 146
  44. RETR 146
  45. CWD /
  46. EPSV
  47. SIZE 146
  48. RETR 146
  49. QUIT
  50. </protocol>
  51. </verify>
  52. </testcase>