libcurl 不支持或禁用“http”

Dim*_*ims 27 windows curl windows-10

我正在尝试运行curl命令并收到此错误:

'http" not supported or disabled in libcurl
Run Code Online (Sandbox Code Playgroud)

我查看了我的位置curl.exe,找到C:\Program Files\GDAL并删除了它。

错误仍然存​​在。这是curl.exeC:\Anaconda3\Library\bin,所以我也删除了它。

错误仍然存​​在。有一个更curl.exe$PATH

所以错误与可执行文件无关。我该如何解决?

ber*_*ieb 42

确保提供curl双引号 ( "),而不是单引号 ( ')

众所周知,Windows 中的 Curl 不喜欢单引号(例如)此线程

D:\nr\platform_installer_win32>curl -X GET 'http://api.newrelic.com/v2/applications.json' \ -H "X-Api-Key:${APIKEY}" -i
curl: (1) Protocol "'http" not supported or disabled in libcurl
Run Code Online (Sandbox Code Playgroud)

(……)

我相信您看到的第一个警告是由于将 url 用单引号而不是 double 括起来

(来自 NewRelic 论坛,重点是我的)

这也出现在 StackOverflow 上QA 中