Making cURL PUT, POST and DELETE requests?

I tried this:

curl -H "Authorization: ApiKey t567ga-hYw15fgmrt6_123" -X POST "http://localhost:9200/_search" -d'
  {
     "query": {
       "match_all": {}
     }
  }'

But I get as a reply:

{"error":"Content-Type header [application/x-www-form-urlencoded] is not supported","status":406}