FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Upload files via FTP
Posts: 340
Joined: Thu Jan 25, 2007 03:53 PM

Upload files via FTP

Posted: Tue Sep 23, 2008 06:18 PM

Hi,
i got from this forums an axample to send files on the web.
i used it for long time with no problem, but now a my customer is non able to send the files.
i suppose this happens becaus he is not connect directly to internet but via server/proxy....

I am asking if there is same parameter to change to my .prg to solve to problem.
I see (as shown below) in the example the var: INTERNET_OPEN_TYPE_DIRECT 1
my i change this value (1) to other or my i change same other var value !?

the following .prg is little part of my working example in case of direct connecto to the internet.

tks to all
Romeo/Zingoni


//
// access types for InternetOpen()
//

define INTERNET_OPEN_TYPE_PRECONFIG 0 // use registry configuration

define INTERNET_OPEN_TYPE_DIRECT 1 // direct to net

define INTERNET_OPEN_TYPE_PROXY 3 // via named proxy

define INTERNET_OPEN_TYPE_PRECONFIG_WITH_NO_AUTOPROXY 4 // prevent using java/script/INS


Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

Upload files via FTP

Posted: Thu Sep 25, 2008 04:17 PM

Romeo,

Have you checked the meaning for each one of those types ?

This may help you:

http://msdn.microsoft.com/en-us/library/aa385096(VS.85).aspx

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 340
Joined: Thu Jan 25, 2007 03:53 PM

Upload files via FTP

Posted: Thu Sep 25, 2008 05:45 PM

the problem seems im not able to switch via fwh from attive mode to passive mode using ftp command.

I'am not sure what i write ?!

Using FTPzilla all is ok: i can send files, but using FWH i cannot..

I tryed to have a look on MSDN and i found:
INTERNET_FLAG_PASSIVE is the only service-specific flag used by the WinINet functions. This flag can be set when the service type is INTERNET_SERVICE_FTP in order to use passive FTP semantics.

but i don't know how activate the PASSIVE mode in fwh.

any help?
tks

Tks
Romeo/Zingoni

Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM

Upload files via FTP

Posted: Thu Sep 25, 2008 10:02 PM
Romeo wrote:I tryed to have a look on MSDN and i found:
INTERNET_FLAG_PASSIVE is the only service-specific flag used by the WinINet functions. This flag can be set when the service type is INTERNET_SERVICE_FTP in order to use passive FTP semantics.

but i don't know how activate the PASSIVE mode in fwh.


Pass INTERNET_FLAG_PASSIVE as the 7th parameter to the InternetConnect() function.

#define INTERNET_FLAG_PASSIVE 0x08000000

EMG

Continue the discussion