test591 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <testcase>
  2. #
  3. # For this test the server rejects the EPRT command,
  4. # code in lib%TESTNUMBER 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. 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. lib%TESTNUMBER
  33. </tool>
  34. <name>
  35. FTP multi PORT and 425 on upload
  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. # CURLE_FTP_ACCEPT_FAILED = 10
  64. <errorcode>
  65. 10
  66. </errorcode>
  67. <upload>
  68. </upload>
  69. </verify>
  70. </testcase>