ES is giving error

(Gobinda Nandi) #1
curl -XPOST "http://localhost:9200/myindex/tweet/" -d'
    "content": "Hello World!",
    "postDate": "2009-11-15T14:12:12"

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

using ES 6, ubuntu 16.04

anyone can point the error i doing ?

(Christian Dahlqvist) #2

You will need to set the correct content type as outlined in this blog post.

(Gobinda Nandi) #3

thanks for the help. appreciate it.

(system) #4

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