test145 754 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <testcase>
  2. <info>
  3. <keywords>
  4. FTP
  5. NLST
  6. PORT
  7. </keywords>
  8. </info>
  9. # Server-side
  10. <reply>
  11. <servercmd>
  12. REPLY NLST 550 Have a taste on this!
  13. </servercmd>
  14. <data>
  15. </data>
  16. </reply>
  17. # Client-side
  18. <client>
  19. <server>
  20. ftp
  21. </server>
  22. <name>
  23. FTP NLST dir list with weird reply code, using PORT
  24. </name>
  25. <command>
  26. ftp://%HOSTIP:%FTPPORT/ -P - -l
  27. </command>
  28. </client>
  29. # Verify data after the test has been "shot"
  30. <verify>
  31. <errorcode>
  32. 19
  33. </errorcode>
  34. # Strip all valid kinds of PORT and EPRT that curl can send
  35. <strip>
  36. ^PORT \d{1,3},\d{1,3},\d{1,3},\d{1,3},\d{1,3},\d{1,3}
  37. ^EPRT \|1\|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\|\d{1,5}\|
  38. </strip>
  39. <protocol>
  40. USER anonymous
  41. PASS ftp@example.com
  42. PWD
  43. PORT 127,0,0,1,243,212
  44. TYPE A
  45. NLST
  46. QUIT
  47. </protocol>
  48. </verify>
  49. </testcase>