我正在尝试使用安装框架,curl
但我不断收到此烦人的错误消息curl: (1) Protocol https not supported or disabled in libcurl
。有谁知道如何解决这一问题?我是栈!
谢谢
我正在尝试使用带有 cURL 的 sftp 将文件上传到我的网络服务器,如果我curl -V
在我的服务器上运行,我会得到这个输出
curl 7.47.0 (i686-pc-linux-gnu) libcurl/7.47.0 zlib/1.2.8 libssh2/1.8.0
Protocols: dict file ftp gopher http imap pop3 rtsp scp sftp smtp telnet tftp
Features: IPv6 Largefile libz UnixSockets
Run Code Online (Sandbox Code Playgroud)
但是,如果我尝试使用 sftp:// 作为curl
URL将文件上传到我的服务器,则会在将-v
选项添加到 curl 命令后得到以下输出:
* Protocol sftp not supported or disabled in libcurl
* Closing connection -1
curl: (1) Protocol sftp not supported or disabled in libcurl
Run Code Online (Sandbox Code Playgroud)
要使用 SFTP 协议安装 cURL,我在这里使用了这些说明。