elasticsearch-error-content-type-header

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

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

Read more »