test531 899 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. <servercmd>
  15. REPLY STOR 425 Permission Denied. File Exists.
  16. </servercmd>
  17. </reply>
  18. # Client-side
  19. <client>
  20. <server>
  21. ftp
  22. </server>
  23. <tool>
  24. lib525
  25. </tool>
  26. <name>
  27. FTP PORT upload using multi interface and get 425 response
  28. </name>
  29. <command>
  30. ftp://%HOSTIP:%FTPPORT/path/%TESTNUMBER log/upload%TESTNUMBER
  31. </command>
  32. <file name="log/upload%TESTNUMBER">
  33. Moooooooooooo
  34. don't upload this
  35. </file>
  36. </client>
  37. # Verify data after the test has been "shot"
  38. <verify>
  39. # Strip all valid kinds of PORT and EPRT that curl can send
  40. <strip>
  41. ^PORT \d{1,3},\d{1,3},\d{1,3},\d{1,3},\d{1,3},\d{1,3}
  42. ^EPRT \|1\|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\|\d{1,5}\|
  43. </strip>
  44. <protocol>
  45. USER anonymous
  46. PASS ftp@example.com
  47. PWD
  48. CWD path
  49. PORT 127,0,0,1,5,109
  50. TYPE I
  51. STOR %TESTNUMBER
  52. QUIT
  53. </protocol>
  54. </verify>
  55. </testcase>