title: HttpClient and Basic Auth in URL
body: <p>I'd like to use <code>HttpClient</code> and HTTP basic auth by specifying username and password in the URL, like this:</p>
  
  <pre><code>var request = new HttpRequestMessage(HttpMethod.Get, 
      "https://username:password@example.com");
  
  using (var client = new HttpClient()) {
      await client.SendAsync(request);
  }
  </code></pre>
  
  <p>However there is no <code>Authorization</code> header sent with the request.</p>
  
  <p>Is there a way to tell HttpClient to support this, or do I have to manually fetch the credentials from the URL and set the headers myself?</p>