2
0

test592 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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. NODATACONN421
  15. </keywords>
  16. </info>
  17. # Server-side
  18. <reply>
  19. <data>
  20. </data>
  21. <servercmd>
  22. NODATACONN421
  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 421 on upload
  36. </name>
  37. <command>
  38. ftp://%HOSTIP:%FTPPORT/path/592 %FTPTIME2 log/upload592
  39. </command>
  40. <file name="log/upload592">
  41. Moooooooooooo for 592
  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. # a 421 response must prevent further commands from being sent
  53. <protocol>
  54. USER anonymous
  55. PASS ftp@example.com
  56. PWD
  57. CWD path
  58. EPRT |1|
  59. PORT
  60. TYPE I
  61. STOR 592
  62. QUIT
  63. </protocol>
  64. # CURLE_FTP_ACCEPT_FAILED = 10
  65. <errorcode>
  66. 10
  67. </errorcode>
  68. <upload>
  69. </upload>
  70. </verify>
  71. </testcase>