title: cURL Always Returns 401 With NTLM
body: <p>I'm working on a library to communicate with Microsoft Exchange using PHP. Everything works fine on my production servers, but I keep getting a 401 Unauthorized on my development machine. I tried using curl from the command line and I get the same results.</p>
  
  <p>Using the following returns "401" on my machine:</p>
  
  <pre><code>curl https://mail.example.com/EWS/Exchange.asmx -w %{http_code} --ntlm -u username:password
  </code></pre>
  
  <p>The same exact call returns "302" on my production machines, which is what I expect.</p>
  
  <p>My development machine is using curl 7.19.7 and my production machine is using curl 7.18.0.</p>