title: Curl request with ntlm authentication fails if password is set
body: <p>I try to fetch some data from a Microsoft Dynamics Nav WebService.
  This service uses the NTML authentication.</p>
  
  <p>If I open the webservice url in a browser and use the given credentials everything works fine.</p>
  
  <p>For setting up the environment for the WebService Client, I used the command line to check whether everything is working fine, I was, at a specific point, unable to authenticate.</p>
  
  <p>Thats the command I am using:</p>
  
  <pre><code>curl --ntlm -u "DOMAIN\USERNAME" -k -v "http://hostname:port/instance/Odata/Company('CompanyName')/Customer"
  </code></pre>
  
  <p>The command will prompt for the password. 
  I copy in the password and everything is doing fine.</p>
  
  <p>But when I use this command, with the password already included, it stops working and the authentication fails:</p>
  
  <pre><code>curl --ntlm -u "DOMAIN\USERNAME:PASSWORD" -k -v "http://hostname:port/instance/Odata/Company('CompanyName')/Customer"
  </code></pre>
  
  <p>The password contains some special chars, so I tried to use the percent encoding, which had no effect at all.</p>
  
  <p>It is very difficult to research this kind of issue. Searching for curl + ntlm authentication issues provides a lot of results, but nothing is related to this specific kind of issue.</p>
  
  <p>Does anyone of you guys already had experience with this kind of issue?</p>