test591 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. #
  2. # For this test the server rejects the EPRT command,
  3. # code in lib591 makes use of curl_multi_timeout()
  4. # and server does not establish data connection.
  5. #
  6. <testcase>
  7. <info>
  8. <keywords>
  9. FTP
  10. PORT
  11. STOR
  12. multi
  13. EPRT refused
  14. NODATACONN425
  15. </keywords>
  16. </info>
  17. # Server-side
  18. <reply>
  19. <data>
  20. </data>
  21. <servercmd>
  22. NODATACONN425
  23. REPLY EPRT 500 we don't like EPRT now
  24. </servercmd>
  25. </reply>
  26. # Client-side
  27. <client>
  28. <server>
  29. ftp
  30. </server>
  31. <tool>
  32. lib591
  33. </tool>
  34. <name>
  35. FTP multi PORT and 425 on upload
  36. </name>
  37. <command>
  38. ftp://%HOSTIP:%FTPPORT/path/591 %FTPTIME2 log/upload591
  39. </command>
  40. <file name="log/upload591">
  41. Moooooooooooo for 591
  42. upload this
  43. </file>
  44. </client>
  45. # Verify data after the test has been "shot"
  46. <verify>
  47. # Strip off parts of the PORT and EPRT commands that might differ
  48. <strippart>
  49. s/^PORT (.*)/PORT/
  50. s/^EPRT \|1\|(.*)/EPRT \|1\|/
  51. </strippart>
  52. <protocol>
  53. USER anonymous
  54. PASS ftp@example.com
  55. PWD
  56. CWD path
  57. EPRT |1|
  58. PORT
  59. TYPE I
  60. STOR 591
  61. QUIT
  62. </protocol>
  63. # CURLE_UPLOAD_FAILED = 25
  64. <errorcode>
  65. 25
  66. </errorcode>
  67. <upload>
  68. </upload>
  69. </verify>
  70. </testcase>