I'm downloading HTTP-files via InternetReadFile.
Now I want to enhance my program: It shall be able to use proxies. These
proxies should not be entered in the settings of the Internet-Explorer. The
user enters the proxy-address (ip or url), port, username and password in my
program and only my program will use this proxy.
How to tell WinINet to use a special proxy (not entered in the IE-settings)
and how to tell it its' address, port, username & password?
Stefan
Ive been asking the same thing for the last month and have visited a couple
links but i have yet to find out how to do what you are inquiring. I looked
at
MSDN and other sites and could not find a way to do it. I tried various
combinations
in the API and was not successful.
If you or somebody else can give some pointers please let me know.
AGP

Signature
**********************************************************************
Unpak my email address before sending me personal email
**********************************************************************
> I'm downloading HTTP-files via InternetReadFile.
>
[quoted text clipped - 7 lines]
>
> Stefan
Private Declare Function InternetOpen Lib "wininet" Alias "InternetOpenA"
_
(ByVal lpszAgent As String, ByVal dwAccessType As Long, _
ByVal lpszProxyName As String, ByVal lpszProxyBypass As String, _
ByVal dwFlags As Long) As Long
"InternetOpen" also expects some "Proxy" information.
It should be sufficient to use "INTERNET_OPEN_TYPE_PROXY" instead of
"INTERNET_OPEN_TYPE_PRECONFIG" in "InternetOpen", and fill in the relevant
proxy info.

Signature
Dipl.-Ing.(TH) Winfried Kaiser
Fortune Systems GmbH & Co.
D-24975 Husby
Germany
> I'm downloading HTTP-files via InternetReadFile.
>
[quoted text clipped - 7 lines]
>
> Stefan
Sven Erik Matzen - 29 Oct 2003 08:48 GMT
Hi Winfried,
This seem to work fine for applications started by a user directly
(interactive logon session), but not for objects started by a service (like
ASP-sessions in IIS) - do you have a solution for this, too?
Sven
> Private Declare Function InternetOpen Lib "wininet" Alias "InternetOpenA"
> _
[quoted text clipped - 27 lines]
> >
> > Stefan
DIOS - 30 Oct 2003 01:49 GMT
This does not work for proxies that need authentication.
My corporate firewall needs a use id and user passsword
to get to the internet.
AGP

Signature
**********************************************************************
Unpak my email address before sending me personal email
**********************************************************************
> Private Declare Function InternetOpen Lib "wininet" Alias "InternetOpenA"
> _
[quoted text clipped - 22 lines]
> >
> > Stefan