title: How to add Win Auth header to HttpClient's request c#
body: <p>I need to simulate <code>Win Auth</code> http header for <code>HttpClient</code>. It could be something like the following , see the <code>Authorization</code> header :</p>
  
  <pre><code>POST http://url HTTP/1.1
  Host: http://127.0.0.1/
  User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:43.0) Gecko/20100101 Firefox/43.0
  Accept: /
  Accept-Language: en-US,en;q=0.5
  Accept-Encoding: gzip, deflate
  Content-Type: application/x-www-form-urlencoded; charset=UTF-8
  Referer: http://127.0.0.1/
  Content-Length: 18
  Origin: http://127.0.0.1/
  Connection: keep-alive
  Authorization: NTLM TlRMTVNTUAADAAAAGAAYAIQAAABuAW4BnAAAAAAAAABYAAAAFgAWAFgAAAA
  WABYAbgAAAAAAAAAKAgAABYKIogoAACgAAAAPUOVvBWOMBKcZqtqFzf+fmWQAZwByAHUAZAB6AGkAbgBzA...
  </code></pre>
  
  <p>Please, give me some examples how to encode domain username &amp; password for that http header, i found only examples for <code>BASIC</code> authentication. But there are <code>windows authentication</code> &amp; <code>NTLM</code>.</p>