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
**********************
Upload files via FTP
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Romeo,
Have you checked the meaning for each one of those types ?
This may help you:
http://msdn.microsoft.com/en-us/library ... S.85).aspx
Have you checked the meaning for each one of those types ?
This may help you:
http://msdn.microsoft.com/en-us/library ... S.85).aspx
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
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
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact:
Pass INTERNET_FLAG_PASSIVE as the 7th parameter to the InternetConnect() function.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.
#define INTERNET_FLAG_PASSIVE 0x08000000
EMG