天天看点

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

Windows下安装Curl,下载的64位版本。

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

下载后,将以下文件复制到 D:Windows 目录下。

注意:我的系统在D盘。

curl: (1) Protocol "'http" not supported or disabled in libcurl
但是使用以下命令时:

curl -X GET ' http://localhost:9200/_cat/indices?v

'

却出现错误。

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

其实这是一个很坑的问题,

只需要把单引号改为双引号就可以了。

继续阅读