The curl - XPOST "localhost: 9200/twitter/tweet/1?" - d '{" user ":" Tom "}'
Always quote the content-type header is not supported, the status: 406, the great god help
CodePudding user response:
The curl - H the content-type: application/json - XPOST localhost: 9200/twitter/tweet/1? Pretty - d {\ "user " : \ "Tom \} - & gt; Perfect!