407 Proxy Authentication Required

前端 未结 7 698
我在风中等你
我在风中等你 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:15

    It might be helpful for someone out there finding this via Google that you can actually put this to use in .NET applications that may not have their own AppName.exe.config file yet (or you can modify it if so). We use NextGen EPM (medical scheduling / billing) and their credit-card processing system kept getting stuck at our proxy server because it wouldn't pass the credentials. I made an EXEName.config file (NextGenEPM.exe.config in this case) containing the snippet above:

    
    
      
        
          
        
      
    
    

    Success! This allowed me to resolve the issue without mucking around in our proxy server, which is adamantly configured to require authentication and we'd rather not compromise that.

提交回复
热议问题