title: Amazon S3 bucket file upload : Invalid Transfer encoding header
body: <p>I am trying to upload a file to S3 bucket as per <a href="https://gist.github.com/chrismdp/6c6b6c825b07f680e710" rel="nofollow noreferrer">this</a> example. I have created a shell script and changed param values, when I try to execute it, following error message is returned:</p>
  
  <pre><code>&lt;Error&gt;&lt;Code&gt;NotImplemented&lt;/Code&gt;
  &lt;Message&gt;A header you provided implies functionality that is not implemented&lt;/Message&gt;
  &lt;Header&gt;Transfer-Encoding&lt;/Header&gt;
  </code></pre>
  
  <p>From the docs, it seems <code>curl</code> adds this header when it can't determine the content length. I don't know whether it's possible to change curl config to skip including Transfer Encoding header, but have tried the following:</p>
  
  <ul>
  <li>Changed content type to multipart</li>
  <li>Included content length header</li>
  <li>Removed content type header</li>
  </ul>
  
  <p>I am still getting the same error. Do I need to change anything else to make it work?</p>