test212 896 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <testcase>
  2. # Server-side
  3. <reply>
  4. <data>
  5. data blobb
  6. </data>
  7. <servercmd>
  8. REPLY EPRT 500 no such command
  9. </servercmd>
  10. </reply>
  11. # Client-side
  12. <client>
  13. <server>
  14. ftp
  15. </server>
  16. # EPRT is only sent when IPv6 is enabled
  17. <features>
  18. ipv6
  19. </features>
  20. <name>
  21. Get two FTP files with no remote EPRT support
  22. </name>
  23. <command>
  24. ftp://%HOSTIP:%FTPPORT/a/path/212 ftp://%HOSTIP:%FTPPORT/a/path/212 -P -
  25. </command>
  26. <stdout>
  27. data blobb
  28. data blobb
  29. </stdout>
  30. </client>
  31. # Verify data after the test has been "shot"
  32. <verify>
  33. # Strip the addresses and port number but leave the rest
  34. <strippart>
  35. s/^(EPRT \|1\|)\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\|\d{1,5}\|/$1/
  36. s/^(PORT )\d{1,3},\d{1,3},\d{1,3},\d{1,3},\d{1,3},\d{1,3}/$1/
  37. </strippart>
  38. <protocol>
  39. USER anonymous
  40. PASS ftp@example.com
  41. PWD
  42. CWD a
  43. CWD path
  44. EPRT |1|
  45. PORT
  46. TYPE I
  47. SIZE 212
  48. RETR 212
  49. PORT
  50. SIZE 212
  51. RETR 212
  52. QUIT
  53. </protocol>
  54. </verify>
  55. </testcase>