Error: Curl with Elasticsearch 6

I'm trying to do

curl -X PUT -d @'/home/cuckoo/.cuckoo/elasticsearch/template.json' 'http://localhost:9200/_template/cuckoo'

but, I have this error:

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

Can you help me, please.


I think you need to include this in your curl

Thanks for your answer; but, what would be the correct way to include it?

Any idea?

A lot of the examples in the docs allow you to copy them as valid curl commands, so you could look there.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.