test525 814 B

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