test593 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <testcase>
  2. #
  3. # For this test the server rejects the EPRT command,
  4. # code in lib591 makes use of curl_multi_timeout()
  5. # and server does not establish data connection.
  6. #
  7. <info>
  8. <keywords>
  9. FTP
  10. PORT
  11. STOR
  12. multi
  13. EPRT refused
  14. NODATACONN150
  15. </keywords>
  16. </info>
  17. # Server-side
  18. <reply>
  19. <data>
  20. </data>
  21. <servercmd>
  22. NODATACONN150
  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 transient neg. reply
  36. </name>
  37. <command>
  38. ftp://%HOSTIP:%FTPPORT/path/%TESTNUMBER %FTPTIME2 %LOGDIR/upload%TESTNUMBER
  39. </command>
  40. <file name="%LOGDIR/upload%TESTNUMBER">
  41. Moooooooooooo for %TESTNUMBER
  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 %TESTNUMBER
  61. QUIT
  62. </protocol>
  63. <errorcode>
  64. 12
  65. </errorcode>
  66. <upload>
  67. </upload>
  68. </verify>
  69. </testcase>