ADJ網路實驗室
打印

[介紹] 解決 curl 錯誤 - couldn't resolve host https

解決 curl 錯誤 - couldn't resolve host https

最近使用 curl 抓 https 跟有支援 http/2 的網站...curl 都會出現底下的錯誤
curl: (6) Could not resolve: https (Domain name not found)

後來發現是 curl 7.48.0 版本太舊的關係..把curl 的版本更新後
引用:
# yum install curl
# curl -V
curl 7.50.3 (x86_64-redhat-linux-gnu) libcurl/7.50.3 OpenSSL/1.0.1e zlib/1.2.3 c-ares/1.12.0 libidn/1.18 libssh2/1.7.0 nghttp2/1.6.0
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: AsynchDNS IDN IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz HTTP2 UnixSockets Metalink
這樣就可以囉~





TOP

ARTERY.cn