【问题标题】:ElasticSearch :content-type header application/x-www-form-urlencoded is not supportedElasticSearch :content-type header application/x-www-form-urlencoded 不受支持
【发布时间】:2018-12-27 10:18:03
【问题描述】:

所以我在输入此命令后出现此错误:
curl -XPUT localhost:9200/_bulk --data-binary @movies_elastic.json,我在这里找到了答案:ElasticSearch - Content-Type header [application/x-www-form-urlencoded] is not supported 建议添加 -H 选项,但我没有得到确切的添加位置。
请记住,我是 ELK 的新手。
谢谢。

screenshot from console

【问题讨论】:

标签: elasticsearch curl


【解决方案1】:

假设您的命令的其他所有内容都是正确的,这是 curl 的命令行选项。像这样:

curl -XPUT localhost:9200/_bulk -H'Content-Type: application/json' --data-binary @movies_elastic.json

【讨论】:

    猜你喜欢
    • 2018-05-12
    • 2019-05-24
    • 2018-06-20
    • 2019-02-04
    • 1970-01-01
    • 2013-11-10
    • 2019-10-26
    • 2017-09-22
    • 2017-07-19
    相关资源
    最近更新 更多