Thursday, April 9, 2020

HttpClientHandler in C#

HttpClientHandler handler = new HttpClientHandler();
handler.Credentials = new NetworkCredential();
HttpClient client = new HttpClient(handler);

 
 

Addendum 4/9/2020: handler.UseDefaultCredentials = true; would be a way to jam in default credentials.

No comments:

Post a Comment