-
Hello,
I have the following question ; I use API ‘wininet.dll’ to set up an ftp connection. I need to connect to various ftp servers in various countries. (like spain,england, turkey) With most countries, I can get an connection and transfer files, etc. Except for Turkey. They have a poor connection, and I don’t get a connection with my vb program. The strange thing is, when I use the program ‘windows commander v4.6’, I can get the connection… what am I doing wrong ? I already changed these settings
Public Const INTERNET_OPTION_CONNECT_RETRIES = 1
Public Const INTERNET_OPTION_CONNECT_TIMEOUT = 3
Public Const INTERNET_OPTION_RECIEVE_TIMEOUT = 7
But with bo result however…
The code I use to connect to the ftp server is
hConnection = InternetConnect(hOpen, "ftp-server", INTERNET_INVALID_PORT_NUMBER, "user", "password", INTERNET_SERVICE_FTP, dwSeman, 0)
Can someone give me some advice ?
thx
-
Well, you're probably not going to like my answer, but I always use Winsock API because it gives greater control over the connection interchanges.
My stab in the dark is that maybe those other two servers don't require passive transfers, and the turkey server does. *shrug* I don't know. :)
-
indeed
indeed, this not the answer i'm looking for :)
I have already much coded, so switching is not an option for me...
But anyway, thx for the tip :p
Greetings Red