相关疑难解决方法(0)

检测默认Web浏览器的代理设置

MSDN样本

HttpWebRequest myWebRequest=(HttpWebRequest)WebRequest.Create("http://www.microsoft.com");
WebProxy myProxy=new WebProxy();
// Obtain the 'Proxy' of the  Default browser.  
myProxy=(WebProxy)myWebRequest.Proxy;
Run Code Online (Sandbox Code Playgroud)

不行.我得到的错误是:无法将"WebProxyWrapper"类型的对象强制转换为"System.Net.WebProxy"类型

我有什么选择?

c# proxy

6
推荐指数
1
解决办法
1万
查看次数

标签 统计

c# ×1

proxy ×1