test103 720 B

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