How to authenticate against a proxy when using the HttpClient class?

前端 未结 2 2054
有刺的猬
有刺的猬 2020-12-02 21:25

I have a console app built on .NET 4 that uses the HttpClient library (obtained via NuGet) to retrieve data from a public API over the internet. The console app

2条回答
  •  天涯浪人
    2020-12-02 21:46

    I managed to solve my problem very simply through proxy configuration in app.config.

    
        
            
        
    
    

    http://msdn.microsoft.com/en-us/library/dkwyc043.aspx

提交回复
热议问题