407 Proxy Authentication Required

前端 未结 7 667
我在风中等你
我在风中等你 2020-12-06 22:46

I am working on a website, in which I am retrieving XML data from an external URL, using the following code

WebRequest req = WebRequest.Create(\"External se         


        
相关标签:
7条回答
  • 2020-12-06 23:32

    Try this one if you want to specify the proxy details

    <?xml version="1.0" encoding="utf-8" ?>
         <configuration>
              <system.net>
                  <defaultProxy enabled="true" useDefaultCredentials="true">
                    <proxy proxyaddress="http://<ProxyServer>:<port>" 
                           usesystemdefault="False" 
                           bypassonlocal="True" 
                           autoDetect="False" />
                  </defaultProxy>
              </system.net>
    </configuration>
    

    Cheers!

    0 讨论(0)
提交回复
热议问题