窗口命令提示符下的cURL端口拒绝

时间:2016-01-12 09:04:41

标签: curl

我正在按照示例教程设置我的cURL环境并测试它是否可以使用此link。但不幸的是,我在执行命令curl.exe -XPUT localhost:9200/test/type/1 -d {"test":"text"}

后立即收到错误消息

错误消息:

{"error":
{"root_cause":[{"type":"mapper_parsing_exception","reason":"failed to parse"}],
"type":"mapper_parsing_exception",
"reason":"failed to parse",
"caused_by":{"type":"json_parse_exception","reason":"Unexpected end-of-input within/between OBJECT entries\n 
at [Source: org.elasticsearch.common.io.stream.InputStreamStreamInput@75d8c4a5; line: 1, column: 15]"}},
"status":400}curl: (7) Failed to connect to  port 80: Connection refused

对不起,我对这种方法不熟悉,我不明白这个概念

为什么会发生这种情况?解决方案是什么?

0 个答案:

没有答案