Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passive FTP
Message
De
17/03/2003 09:17:19
 
 
À
17/03/2003 08:12:22
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00766499
Message ID:
00766520
Vues:
14
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform