title: Using curl with NTLM auth to make a post is failing
body: <p>I can't seem to wrap my head around this. I'm trying to script automating an upload of a csv but the curl is failing with a 401.</p>
  
  <pre><code>curl -v --ntlm -u username --upload-file ~/galaxy/forums/pt_update.csv https://connect.example.com/11063/csv_import?op=add -k
  Enter host password for user 'username:
  * About to connect() to connect.example.com port 443 (#0)
  *   Trying x.x.x.x... connected
  * successfully set certificate verify locations:
  *   CAfile: none
    CApath: /etc/ssl/certs
  * SSLv3, TLS handshake, Client hello (1):
  * SSLv3, TLS handshake, Server hello (2):
  * SSLv3, TLS handshake, CERT (11):
  * SSLv3, TLS handshake, Server finished (14):
  * SSLv3, TLS handshake, Client key exchange (16):
  * SSLv3, TLS change cipher, Client hello (1):
  * SSLv3, TLS handshake, Finished (20):
  * SSLv3, TLS change cipher, Client hello (1):
  * SSLv3, TLS handshake, Finished (20):
  * SSL connection using RC4-MD5
  * Server certificate:
  *    subject: C=US; ST=Washington; L=internetland; O=example.com Inc.; CN=connect.example.com
  *    start date: 2012-06-11 14:53:47 GMT
  *    expire date: 2013-06-11 14:53:47 GMT
  *    common name: connect.example.com (matched)
  *    issuer: DC=com; DC=example; DC=ant; CN=example.com Infosec CA G2
  *    SSL certificate verify result: unable to get local issuer certificate (20), continuing anyway.
  * Server auth using NTLM with user 'username'
  &gt; PUT /11063/csv_import?op=add HTTP/1.1
  &gt; Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
  &gt; User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3
  &gt; Host: connect.example.com
  &gt; Accept: */*
  &gt; Content-Length: 0
  &gt; Expect: 100-continue
  &gt; 
  &lt; HTTP/1.1 401 Authorization Required
  &lt; Date: Fri, 29 Mar 2013 03:47:00 GMT
  &lt; Server: Server
  &lt; WWW-Authenticate: Basic realm="ANT (Windows) Login"
  &lt; Content-Length: 401
  &lt; Connection: close
  &lt; Content-Type: text/html; charset=iso-8859-1
  &lt; 
  &lt;!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"&gt;
  &lt;html&gt;&lt;head&gt;
  &lt;title&gt;401 Authorization Required&lt;/title&gt;
  &lt;/head&gt;&lt;body&gt;
  &lt;h1&gt;Authorization Required&lt;/h1&gt;
  &lt;p&gt;This server could not verify that you
  are authorized to access the document
  requested.  Either you supplied the wrong
  credentials (e.g., bad password), or your
  browser doesn't understand how to supply
  the credentials required.&lt;/p&gt;
  &lt;/body&gt;&lt;/html&gt;
  * Closing connection #0
  * SSLv3, TLS alert, Client hello (1):
  </code></pre>
  
  <p>I replaced example where my actual domain is and I'm most certainly using the right username/pw for my domain.</p>