Proxy Basic Authentication in C#: HTTP 407 error

后端 未结 6 2001
伪装坚强ぢ
伪装坚强ぢ 2020-11-28 05:18

I am working with a proxy that requires authentication, i.e., in a browser if I try to open a page it will immediately ask for credentials. I supplied same credentials in my

6条回答
  •  死守一世寂寞
    2020-11-28 06:00

    This method may avoid the need to hard code or configure proxy credentials, which may be desirable.

    Put this in your application configuration file - probably app.config. Visual Studio will rename it to yourappname.exe.config on build, and it will end up next to your executable. If you don't have an application configuration file, just add one using Add New Item in Visual Studio.

    
    
      
        
      
    
    

提交回复
热议问题