test408 877 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <testcase>
  2. <info>
  3. <keywords>
  4. FTPS
  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. <features>
  17. SSL
  18. </features>
  19. <server>
  20. ftps
  21. </server>
  22. <name>
  23. FTPS PORT upload with CWD
  24. </name>
  25. <command>
  26. -k --ftp-ssl-control ftps://%HOSTIP:%FTPSPORT/CWD/STOR/RETR/408 -T log/upload408 -P -
  27. </command>
  28. <file name="log/upload408">
  29. Moooooooooooo
  30. upload this
  31. </file>
  32. </client>
  33. # Verify data after the test has been "shot"
  34. <verify>
  35. # Strip all valid kinds of PORT and EPRT that curl can send
  36. <strip>
  37. ^PORT \d{1,3},\d{1,3},\d{1,3},\d{1,3},\d{1,3},\d{1,3}
  38. ^EPRT \|1\|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\|\d{1,5}\|
  39. </strip>
  40. <protocol>
  41. USER anonymous
  42. PASS ftp@example.com
  43. PBSZ 0
  44. PROT C
  45. PWD
  46. CWD CWD
  47. CWD STOR
  48. CWD RETR
  49. PORT 127,0,0,1,5,109
  50. TYPE I
  51. STOR 408
  52. QUIT
  53. </protocol>
  54. <upload>
  55. Moooooooooooo
  56. upload this
  57. </upload>
  58. </verify>
  59. </testcase>