2
0

test594 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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. NODATACONN
  15. </keywords>
  16. </info>
  17. # Server-side
  18. <reply>
  19. <data>
  20. </data>
  21. <servercmd>
  22. NODATACONN
  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 upload, no data conn and no positive prelim. reply
  36. </name>
  37. <command>
  38. ftp://%HOSTIP:%FTPPORT/path/594 %FTPTIME2 log/upload594
  39. </command>
  40. <file name="log/upload594">
  41. Moooooooooooo for 594
  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 594
  61. QUIT
  62. </protocol>
  63. <errorcode>
  64. 28
  65. </errorcode>
  66. <upload>
  67. </upload>
  68. </verify>
  69. </testcase>