We are being asked to deliver files to an FTP server that only accepts ‘passive’ mode connections. It is possible to configure a fileset/FTP thread in Cloverleaf 5.5 to use passive mode?
Having the same issue with the inability to place files successfully on an ftp server that wants passive mode. Can place the file manually, but when attempting to place via thread, file is created, but is zero bytes.
I don’t know which version of Cloverleaf you have but Cloverleaf uses PASSIVE (PASV) by default in all versions. In 5.5 we use TclCurl which will first attempt EPSV mode which is the same as PASV for IPV6 which is the expanded IPV4 (More addresses) If it cannot set EPSV it sets PASV.
You could use ACTIVE mode by use of the FTP PORT command but why? Active mode tells the server to assign the data port which, in most cases will not get through your firewall. That is why PASSIVE mode is used. It allows the client to assign the data port.
If this works via the command line, it should work from Cloverleaf. Run it from the command line with -d option (DEBUG). Then run from Cloverleaf with full EO and see differences in commands issued.
The problem is that a lot of FTP servers are not IAW RFC 959. If your server expects something different you could write a procedure using either the FTP package from tcllib or, if on 5.5, TclCurl