Upload files via FTP

Upload files via FTP

Postby Romeo » Tue Sep 23, 2008 6: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
**********************
Romeo
 
Posts: 340
Joined: Thu Jan 25, 2007 3:53 pm
Location: Milan (Italy)

Postby Antonio Linares » Thu Sep 25, 2008 4: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42080
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Romeo » Thu Sep 25, 2008 5: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
Romeo
 
Posts: 340
Joined: Thu Jan 25, 2007 3:53 pm
Location: Milan (Italy)

Postby Enrico Maria Giordano » 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
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 51 guests