如何为WebBrowser控件的代理,而不影响系统/ IE代理 [英] How to set a proxy for Webbrowser Control without effecting the SYSTEM/IE proxy
本文介绍了如何为WebBrowser控件的代理,而不影响系统/ IE代理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我怎样才能设置一个WebBrowser控件的代理没有设置代理的IE浏览器?
How can I set a proxy for a Webbrowser Control without setting a proxy for IE?
基本上,我想我的应用程序使用某个代理但是的很明显的,我不希望改变用户的IE代理服务器设置。
Basically I want my application to use a certain proxy however obviously I don't want to change user's IE proxy settings.
推荐答案
尝试UrlMkSetSessionOption INTERNET_OPTION_PROXY和UrlMkSetSessionOption INTERNET_OPTION_REFRESH
try UrlMkSetSessionOption INTERNET_OPTION_PROXY and UrlMkSetSessionOption INTERNET_OPTION_REFRESH
如果您的代理有密码验证,你可能需要在你的WebBrowserSiteBase派生类中实现IAuthenticate进行(例)。
If your proxy has password authentication, you may need to implement IAuthenticate(Ex) in your WebBrowserSiteBase derived class.
这篇关于如何为WebBrowser控件的代理,而不影响系统/ IE代理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文