我一直在尝试将各种格式的数据发送到我的计算机上运行的ElasticSearch.
我正在运行Ubuntu 17(最新版本),但我无法这样做.
以下是我在终端上使用的命令:
curl -X POST 'http://localhost:9200/json/test/2' -d @json.json     
Run Code Online (Sandbox Code Playgroud)
我在文件所在的正确目录中.这是我得到的错误:
{"error":"Content-Type header [application/x-www-form-urlencoded] is not supported","status":406}
Run Code Online (Sandbox Code Playgroud)
我在网上搜索无济于事.
我究竟做错了什么?