且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

curl:(1)在libcurl中不支持或禁用协议https

更新时间:2022-05-27 22:27:41

得到答案,其中有以下内容:il / 2013/08 / curl-1-protocol-not-supported-or.htmlrel =noreferrer> HERE

curl -XPUT 'http://localhost:9200/api/twittervnext/tweet'

首先尝试并已经出现错误:

Woops, first try and already an error:

curl: (1) Protocol 'http not supported or disabled in libcurl

此错误的原因是愚蠢的, 当您对命令使用单引号时,Windows不喜欢。所以正确的命令是:

The reason for this error is kind of stupid, Windows doesn’t like it when you are using single quotes for commands. So the correct command is:

curl –XPUT "http://localhost:9200/api/twittervnext/tweet"