SSL/TLS/HTTPS sites are very slow in a C#/.NET WebBrowser control, but fine in Internet Explorer -
I manually login to a C # application via webbrowser control, and then save the stored cookies for the use of HttpWebRequest.
The problem
The problem I have is that it takes an incredibly long time to load any site that uses SSL / TLS (https: // urls) It is often time consuming, I have tried it not only with the mediawiki site but also with other secure sites like PayPal and secure Gmail.
By curiosity I tried the help of Visual Studio in the same https sites in the browser, [VB Webbrozer Sample] [2], and [WPF Webbrozer Control Sample] [3] and they were all slow, they were the same The sites work fine on Internet Explorer 7 (and of course Firefox).
Question
What is the reason for the SSL / TLS sites (HTML URL) .NET WebBrowser controls, but loading in Internet Explorer properly?
, while coding our chat app, and web services, that was HTTP, SSL type It will take a lot of time to resolve the request. In fact, when we were writing our site checker (which ensures all our sites / services online), then initially all sites have to be loaded from 20 seconds to 45 seconds ....... This is very useful Not a .NET application.
However, when I set the proxy to the faucet, it loads almost immediately.
Sometimes there is an error in doing so, so you can also:
_api.Proxy = WebRequest.DefaultWebProxy;
But, I still search for:
_api.Proxy = null;
Still works best for most web requests.
You can force the proxy and timeout too much to the very smallest WinHTTP settings inside your app.config, but to move above it again to specify the move.
Comments
Post a Comment