title: How can I remove default headers that cURL sends?
body: <p>Curl by default adds headers such as <code>Content-type</code> and <code>User-agent</code>. Normally that is a good thing but I'm trying to test what our server does when those headers are missing.</p>
  <p>My problem is with the <code>Content-type</code> header. If it is missing, the server correctly assumes the user sent JSON. However, curl actually adds the missing header and incorrectly assumes that the content I am posting <code>application/x-www-form-urlencoded</code>. It also sends an Accept header of <code>*/*</code>.</p>
  <p>I suppose that is nice default behavior but I basically would like it to not send headers I did not specify. Is there an option for that?</p>
  <pre><code>curl -v -X POST 'https://example.com' -d '{...}'
  
  &gt; User-Agent: curl/7.37.1
  &gt; Host: example.com
  &gt; Accept: */*
  &gt; Content-Length: 299
  &gt; Content-Type: application/x-www-form-urlencoded
  </code></pre>