title: Curl using URL-encoded data
body: <p>Curl is refusing to take PUT request data in the url-encoded form, or any form other than JSON.</p>
  
  <p>I am using the curl command on OS X.</p>
  
  <p>Here is the relevant part of the command that i am running:</p>
  
  <p><code>curl &lt;other options&gt; -H 'Content-Type: application/x-www-form-urlen-coded' --data-urlencode '_id=postcodes-backup-monday'</code></p>
  
  <p>Anything i try is met with blank refusal and the following error message:</p>
  
  <p>"{"error":"bad_request","reason":"invalid UTF-8 JSON"}"</p>
  
  <p>My response to this is: well of course this is valid JSON - i am sending the data in url-encoded form ...</p>
  
  <p>The command also refuses to parse valid JSON as valid JSON if i try that too.</p>