0

I want to call windows authenticated API using HTTP client. I tried with below approaches

var httpClient = new HttpClient(new HttpClientHandler() 
                      {
                          UseDefaultCredentials = true
                      }); 

var httpClient = new HttpClient(new HttpClientHandler() 
                      {
                          Credentials = CredentialCache.DefaultNetworkCredentials
                      }); 

Both are not working.

Is there any alternative using HTTP Client

Ramakrishna Reddy
  • 347
  • 1
  • 2
  • 18

0 Answers0