Re: Proxy settings

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Dirk (dirk_at_nospam_to_remove_ofcourse.woodstone.nu)
Date: 03/13/04


Date: Sat, 13 Mar 2004 14:02:26 +0100

Before using WinInet from within VB think twice.
We used it and were forced to abandone it due to some very nice "issues"
with it.
We did most of our work when IE was at version 3.x, 4.x and 5.x

The most "typical" problem is that you can pass a timeout parameter to it
but it's not using it correctly and can cause your app to hang forever. At
that time we found a KB article about (did a quick search but couldn't find
it anymore) that explained this and said that in VB there was no solution
for it and that using C(++) was the way to go. You had to use 2 threads,
and one thread would be watching the other thread (that uses wininet) and
kill it if it took to long. A situation that we encountered several times
was a webserver that was able to accept a connection on it's port and but
was unable to send data back to the caller. In that situation the wininet
dll "thought" that it was normal to wait forever.....
Due to these problems we were forced to switch to a 3rd party component.
For the moment we're using the HTTPS control from nsoftware in our software
(Servers Alive) We use the HTTPS component since that once is able to use
both HTTP and HTTPS. Only draw-back is that it's not able to use NTLM
authentication for webpages without the use of the wininet.dll.
Currently we're looking at the httpDLX component of wewonlydo.com and this
one is able to use ntlm for page and proxy authentication without the use of
wininet.dll.

Think about it before using wininet.dll from within VB.

dirk.

"Mike" <mikeotown@nospam.msn.com> wrote in message
news:%23cdd9EGAEHA.752@TK2MSFTNGP09.phx.gbl...
> Thanks for your help. I didn't try the code you posted since
> INTERNET_OPEN_TYPE_PRECONFIG works for us. The issue appears to be
> resolved.
>
> "Ran Liang[MSFT]" <v-liangr@online.microsoft.com> wrote in message
> news:1Qp2SAFAEHA.2300@cpmsftngxa06.phx.gbl...
> > Hi Mike,
> >
> > Thank you for your reply.
> >
> > I agree with your idea. When you call the InternetOpen as what you said
in
> > your post, the internet connection will use the proxy setting in the IE.
> >
> > Here is the documents from MSDN.
> > INTERNET_OPEN_TYPE_PRECONFIG looks at the registry values ProxyEnable,
> > ProxyServer, and ProxyOverride. These values are located under
> > HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet
> > Settings.If ProxyEnable is zero, the application uses
> > INTERNET_OPEN_TYPE_DIRECT. Otherwise, the application uses
> > INTERNET_OPEN_TYPE_PROXY and uses the ProxyServer and ProxyOverride
> > information.
> >
> > Title: Enabling Internet Functionality
> >
>
<http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wininet/wi
> > ninet/enabling_internet_functionality.asp>
> >
> >
> > Also did the code I post works for you? If you still have any concerns
on
> > this issue, please feel free to post here, I will follow up with you.
> >
> >
> >
> > BTW, the WinHTTP information I provide for you is just for your
> information.
> >
> >
> >
> >
> >
> > Best regards,
> >
> > Liang Ran [MSFT]
> > Microsoft Online Partner Support
> > Get Secure! - www.microsoft.com/security
> >
> > This posting is provided "AS IS" with no warranties and confers no
rights.
> >
>
>



Relevant Pages

  • web services client accessing a web service built with atl server
    ... To access a web service using https from a client, ... winInet for https communication and CSoapMSXMLInetClient which uses ... service using a proxy so support for proxy authentication is not important. ...
    (microsoft.public.vc.atl)
  • Re: Problems on HTTPS Post Method
    ... > HTTPS Post method and retrieve the result back and close the HTTPS ... KB167658 "HOWTO: Automate Internet Explorer to ... WinInet, you need to use INTERNET_DEFAULT_HTTPS_PORT in InternetConnect ...
    (microsoft.public.vc.language)
  • WinInet -- Disable SSL Checks for Invalid CA?
    ... certificate authority within WinInet? ... secure site (https) and HttpSendRequest() keeps returning an INVALID_CA ...
    (microsoft.public.platformsdk.security)