How to AutoDetect/Use IE proxy settings in .net HttpWebRequest

后端 未结 4 1761
情歌与酒
情歌与酒 2020-12-16 13:20

Is it possible to detect/reuse those settings ?

How ?

The exception i\'m getting is This is the exception while connecting to http://www.google.com



        
4条回答
  •  甜味超标
    2020-12-16 13:33

    For people having problems with getting this to play nice with ISA server, you might try to set up proxy in the following manner:

    IWebProxy webProxy = WebRequest.DefaultWebProxy;
    webProxy.Credentials = CredentialCache.DefaultNetworkCredentials;
    myRequest.Proxy = webProxy;
    

提交回复
热议问题