无法使用WebRequest.GetSystemWebProxy()获取Internet Explorer代理设置 [英] Unable to get the Internet Explorer proxy settings using WebRequest.GetSystemWebProxy()

查看:208
本文介绍了无法使用WebRequest.GetSystemWebProxy()获取Internet Explorer代理设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用" WebRequest.GetSystemWebProxy()" 获取在Internet Explorer中配置代理设置的方法。它在大多数系统中都能成功运行。在某些系统中,相同的方法没有检测到系统中可用的代理设置


我的代码是,

 HttpWebRequest req =(HttpWebRequest)WebRequest.Create(URL); IWebProxy iproxy = WebRequest.GetSystemWebProxy(); iproxy.Credentials = CredentialCache.DefaultCredentials; req.Proxy = iproxy; 

注意:


       我的应用程序将使用系统中安装的最高.Net框架。此问题出现在
带有Internet Explorer 10的Windows 7

解决方案

Hi Bharath.rb,


是否与另一个成功运行的系统的Internet Explorer版本相同?


我将创建一个带有Internet Explorer 10的Windows 7进行测试获取在Internet Explorer中配置的代理设置的方法。这需要时间。如果我有新的东西,我会尽快给出反馈。


最好的问候,


Wendy



I'm using "WebRequest.GetSystemWebProxy()" method to get the proxy settings configured in the Internet Explorer. It works successfully in most of the systems. In some system the same method was not detecting the proxy settings available in the system.

My code is,

HttpWebRequest req = (HttpWebRequest)WebRequest.Create(URL);IWebProxy iproxy = WebRequest.GetSystemWebProxy();iproxy.Credentials = CredentialCache.DefaultCredentials;req.Proxy = iproxy;

Note:

       My application will use the highest .Net framework installed in the system. This issue arises in Windows 7 with Internet Explorer 10

解决方案

Hi Bharath.rb,

Is it the same version of Internet Explorer with the another system which works successfully?

I will create a Windows 7 with Internet Explorer 10 to test the method to get the proxy settings configured in the Internet Explorer. It takes times. If I have something new, I will feedback as soon as possible.

Best Regards,

Wendy


这篇关于无法使用WebRequest.GetSystemWebProxy()获取Internet Explorer代理设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆