test144 728 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. </data>
  14. <servercmd>
  15. REPLY NLST 450 No files found
  16. </servercmd>
  17. </reply>
  18. # Client-side
  19. <client>
  20. <server>
  21. ftp
  22. </server>
  23. <name>
  24. FTP NLST dir list without contents, using PORT
  25. </name>
  26. <command>
  27. ftp://%HOSTIP:%FTPPORT/ -P - -l
  28. </command>
  29. </client>
  30. # Verify data after the test has been "shot"
  31. <verify>
  32. # Strip all valid kinds of PORT and EPRT that curl can send
  33. <strip>
  34. ^PORT \d{1,3},\d{1,3},\d{1,3},\d{1,3},\d{1,3},\d{1,3}
  35. ^EPRT \|1\|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\|\d{1,5}\|
  36. </strip>
  37. <protocol>
  38. USER anonymous
  39. PASS ftp@example.com
  40. PWD
  41. PORT 127,0,0,1,243,212
  42. TYPE A
  43. NLST
  44. QUIT
  45. </protocol>
  46. </verify>
  47. </testcase>