2
0

test1217 919 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <testcase>
  2. <info>
  3. <keywords>
  4. FTP
  5. PORT
  6. NLST
  7. --data-binary
  8. </keywords>
  9. </info>
  10. # Server-side
  11. <reply>
  12. <data>
  13. contents
  14. </data>
  15. <servercmd>
  16. REPLY PWD 257 there is rubbish all over "/this/is/the/path"
  17. </servercmd>
  18. </reply>
  19. # Client-side
  20. <client>
  21. <server>
  22. ftp
  23. </server>
  24. <name>
  25. FTP with rubbish before name in 257-response
  26. </name>
  27. <command>
  28. ftp://%HOSTIP:%FTPPORT/get/file/1217 ftp://%HOSTIP:%FTPPORT/get/file/again/1217 --ftp-method singlecwd
  29. </command>
  30. </client>
  31. # Verify data after the test has been "shot"
  32. <verify>
  33. # Strip all valid kinds of PORT and EPRT that curl can send
  34. <strip>
  35. ^PORT \d{1,3},\d{1,3},\d{1,3},\d{1,3},\d{1,3},\d{1,3}
  36. ^EPRT \|1\|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\|\d{1,5}\|
  37. </strip>
  38. <protocol>
  39. USER anonymous
  40. PASS ftp@example.com
  41. PWD
  42. CWD get/file
  43. EPSV
  44. TYPE I
  45. SIZE 1217
  46. RETR 1217
  47. CWD /this/is/the/path
  48. CWD get/file/again
  49. EPSV
  50. SIZE 1217
  51. RETR 1217
  52. QUIT
  53. </protocol>
  54. </verify>
  55. </testcase>