test119 715 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <testcase>
  2. <info>
  3. <keywords>
  4. FTP
  5. PORT
  6. RETR
  7. FAILURE
  8. </keywords>
  9. </info>
  10. # Server-side
  11. <reply>
  12. <servercmd>
  13. REPLY RETR 314 bluah you f00l!
  14. </servercmd>
  15. </reply>
  16. # Client-side
  17. <client>
  18. <server>
  19. ftp
  20. </server>
  21. <name>
  22. FTP download, failed RETR with PORT
  23. </name>
  24. <command>
  25. ftp://%HOSTIP:%FTPPORT/119 -P -
  26. </command>
  27. </client>
  28. # Verify data after the test has been "shot"
  29. <verify>
  30. <errorcode>
  31. 19
  32. </errorcode>
  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. TYPE I
  43. SIZE 119
  44. RETR 119
  45. QUIT
  46. </protocol>
  47. </verify>
  48. </testcase>