defaultrequestheaders.authorization basic auth

Code Example - defaultrequestheaders.authorization basic auth

                
                        // For basic auth use the following:
HttpClient client = new HttpClient();
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", "encrypted user/pwd");