title: Using curl to publish to Artifactory not working
body: <p>I have a (Gradle-built) project that produces a JAR at <code>&lt;projectRoot&gt;/build/libs/myapp-&lt;version&gt;.jar</code>. I am now trying to write a <code>curl</code> command that publishes that JAR to Artifactory like so:</p>
  
  <pre><code>curl -i -X PUT -u myuser:12345@$ -T "build/libs/myapp-0.1.20.jar" "http://artifactory.example.com/libs-release-local/com/me/myapp/myapp/0.1.20/myapp-0.1.20.jar"
  </code></pre>
  
  <p>When I run this in the console I get:</p>
  
  <pre><code>HTTP/1.1 100 Continue
  
  HTTP/1.1 403 Forbidden
  Server: Apache-Coyote/1.1
  Content-Type: text/html;charset=utf-8
  Content-Language: en
  Content-Length: 961
  Date: Mon, 01 Jun 2015 15:07:42 GMT
  
  &lt;html&gt;&lt;head&gt;&lt;title&gt;Apache Tomcat/7.0.56 - Error report&lt;/title&gt;&lt;style&gt;&lt;!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--&gt;&lt;/style&gt; &lt;/head&gt;&lt;body&gt;&lt;h1&gt;HTTP Status 403 - &lt;/h1&gt;&lt;HR size="1" noshade="noshade"&gt;&lt;p&gt;&lt;b&gt;type&lt;/b&gt; Status report&lt;/p&gt;&lt;p&gt;&lt;b&gt;message&lt;/b&gt; &lt;u&gt;&lt;/u&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;description&lt;/b&gt; &lt;u&gt;Access to the specified resource has been forbidden.&lt;/u&gt;&lt;/p&gt;&lt;HR size="1" noshade="noshade"&gt;&lt;h3&gt;Apache Tomcat/7.0.56&lt;/h3&gt;&lt;/body&gt;&lt;/html&gt;
  </code></pre>
  
  <p>I have verified that <code>myuser</code> is a valid Artifactory user with publish capabilities (especially for <code>libs-release-local</code>) and that the password is correct. I am aware that there is an Artifactory-Gradle plugin, but for reasons outside the scope of this question I am not interested in it; I want to get this working using <code>curl</code>.</p>