ElasticSearch Error – Content-Type header [application/x-www-form-urlencoded] is not supported

elasticsearch-error-content-type-header

To fix this, add curl option -H ‘Content-Type: application/json’. This error is due to strict content-type checking introduced in ElasticSearch 6.0

Solution