Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / Win API / October 2003



Tip: Looking for answers? Try searching our database.

WinINet and Proxies

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Stefan Merwitz - 28 Oct 2003 13:25 GMT
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
DIOS - 28 Oct 2003 19:18 GMT
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
Winfried Kaiser - 29 Oct 2003 06:30 GMT
 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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.