2
0

test148 789 B

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