title: curl - How to set Content-Length header at command line?
body: <p>Im using the curl command line tool. I do something like</p>
  
  <p><code>curl -XPUT "https://example.org?p1=value1&amp;p2=value2"  -H"Content-Type:application/x-www-form-urlencoded"</code></p>
  
  <p>The server replies with  </p>
  
  <p><code>HTTP/1.1 411 Length Required</code></p>
  
  <p>The solution is usually to set the appropriate <code>Content-Length</code> header.</p>
  
  <p><strong>But what is the Content-Length in this case and how to set it with curl?</strong></p>