curl不能支持https问题

默认情况下,libcurl不支持https, 如果使用https链接,就会出现" Protocol https not supported or disabled in libcurl" 的错误提示。查看curl是否支持https可以使用命令:

curl -V。

解压:# tar -zxvf curl-7.49.0.tar.gz

# cd curl-7.49.0

# ./configure 这里注意的是最后会显示一段信息提示是否支持https:

Protocols:没有https的支持。

这里的SSL support提示的是不支持的,因为https协议是加密安全的基于http的协议,需要使用openssl的静态库,所以需要支持https就必须下载openssl,并安装。yum install openssl-devel包。

重新编译安装:


提示支持https ,接着make,make install 即可!!

# curl -V

猜你喜欢

转载自blog.csdn.net/maybe______/article/details/79802459
今日推荐