test1414 682 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <testcase>
  2. <info>
  3. <keywords>
  4. FTP
  5. PORT
  6. RETR
  7. no SIZE
  8. </keywords>
  9. </info>
  10. # Server-side
  11. <reply>
  12. <data>
  13. data
  14. to
  15. see
  16. that FTP
  17. works
  18. so does it?
  19. </data>
  20. <servercmd>
  21. REPLY SIZE 502 no such command
  22. REPLY EPRT 502 no such command
  23. </servercmd>
  24. </reply>
  25. # Client-side
  26. <client>
  27. <server>
  28. ftp
  29. </server>
  30. <name>
  31. FTP PORT without SIZE or EPRT support
  32. </name>
  33. <command>
  34. ftp://%HOSTIP:%FTPPORT/1414 -P -
  35. </command>
  36. </client>
  37. # Verify data after the test has been "shot"
  38. <verify>
  39. <strippart>
  40. s/^(EPRT \|1\|)(.*)/$1/
  41. s/^(PORT)(.*)/$1/
  42. </strippart>
  43. <protocol>
  44. USER anonymous
  45. PASS ftp@example.com
  46. PWD
  47. EPRT |1|
  48. PORT
  49. TYPE I
  50. SIZE 1414
  51. RETR 1414
  52. QUIT
  53. </protocol>
  54. </verify>
  55. </testcase>