如何在不影响 SYSTEM/IE 代理的情况下为 Webbrowser Control 设置代理 [英] How to set a proxy for Webbrowser Control without effecting the SYSTEM/IE proxy
问题描述
如何在不为 IE 设置代理的情况下为 Webbrowser Control 设置代理?
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(Ex).
If your proxy has password authentication, you may need to implement IAuthenticate(Ex) in your WebBrowserSiteBase derived class.
这篇关于如何在不影响 SYSTEM/IE 代理的情况下为 Webbrowser Control 设置代理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!