test119 770 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. REPLY SIZE 500 command not understood
  15. </servercmd>
  16. </reply>
  17. # Client-side
  18. <client>
  19. <server>
  20. ftp
  21. </server>
  22. <name>
  23. FTP download, failed RETR with PORT
  24. </name>
  25. <command>
  26. ftp://%HOSTIP:%FTPPORT/%TESTNUMBER -P -
  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 [email protected]
  42. PWD
  43. TYPE I
  44. SIZE %TESTNUMBER
  45. RETR %TESTNUMBER
  46. QUIT
  47. </protocol>
  48. </verify>
  49. </testcase>