test147 828 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <testcase>
  2. <info>
  3. <keywords>
  4. FTP
  5. </keywords>
  6. </info>
  7. # Server-side
  8. <reply>
  9. <data>
  10. foo
  11. </data>
  12. <servercmd>
  13. REPLY CWD 550 I won't allow this on my server
  14. COUNT CWD 1
  15. </servercmd>
  16. </reply>
  17. # Client-side
  18. <client>
  19. <server>
  20. ftp
  21. </server>
  22. <name>
  23. FTP with --ftp-create-dirs (failing CWD)
  24. </name>
  25. <command>
  26. ftp://%HOSTIP:%FTPPORT/first/dir/here/%TESTNUMBER --ftp-create-dirs
  27. </command>
  28. </client>
  29. # Verify data after the test has been "shot"
  30. <verify>
  31. # Strip all valid kinds of PORT and EPRT that curl can send
  32. <strip>
  33. ^PORT \d{1,3},\d{1,3},\d{1,3},\d{1,3},\d{1,3},\d{1,3}
  34. ^EPRT \|1\|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\|\d{1,5}\|
  35. </strip>
  36. <protocol>
  37. USER anonymous
  38. PASS ftp@example.com
  39. PWD
  40. CWD first
  41. MKD first
  42. CWD first
  43. CWD dir
  44. CWD here
  45. EPSV
  46. TYPE I
  47. SIZE %TESTNUMBER
  48. RETR %TESTNUMBER
  49. QUIT
  50. </protocol>
  51. </verify>
  52. </testcase>