test212 939 B

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