test108 808 B

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