When using the HttpClient in .net 4.5 to do basic authentication I\'m finding that it\'s issuing 2 requests.
The first fails with a HTTP/1.1 401 Unauthorized and the
Try setting this:
httpClientHandler.PreAuthenticate = true;
I think the very first request will still get the initial 401, but subsequent request to the same URI up to the last forward slash should always send the authentication headers without the 401.