>We have an automated FTP routine that retrieves files from a remote server. Everything was working fine until we had to switch to passive transfers. Is anyone aware of what this could affect or where I could find more information on this specific option? The code appears to run as before, but nothing is transferred.
>
>TIA,
>Maynard
Maynard,
Passive transfer is mostly used if you are behind a firewall. When the ftp on the other side wants to send a file to you it opens a channel/port on your computer. Firewalls inhibit that. That is why it seems to hang.
In Passive mode, the ftp on the other side tells your side what port number it is going to use and your side opens the port instead.
You have to specify the PASSIVE mode if you are using wininet, as in
this.ftpHandle = InternetConnect(this.InternetHandle, Server, iif(empty(Port), 21, Port), UserName ,Password ,;
INTERNET_SERVICE_FTP, INTERNET_FLAG_PASSIVE, 0)
If your are not sure what happens, try with normal ftp software and look at the trace
Gregory