defaultrequestheaders.authorization basic auth C# code example
Example: defaultrequestheaders.authorization basic auth
// For basic auth use the following:
HttpClient client = new HttpClient();
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", "encrypted user/pwd");