test212 944 B

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