内容: 介绍cURL。
Version 7.50
curl是一个命令行工具,用于从服务器获取数据或者向服务器发送数据,支持的协议有:
DICT, FILE, FTP, FTPS, GOPHER, HTTP, HTTPS, IMAP,
IMAPS, LDAP, LDAPS, POP3, POP3S, RTMP, RTSP, SCP, SFTP, SMB, SMBS,
SMTP, SMTPS, TELNET, TFTP
curl提供了一大堆功能,比如支持代理、用户认证、FTP上传、HTTP POST、SSL链接、cookie、Metalink、文件传输恢复等。正如手册所说:
As you will see below, the number of features will make your head spin!
curl依赖于libcurl库,”man 3 libcurl“查看libcurl的详细信息。
CentOS Linux release 7.9.2009 (Core)
安装最新版本:
# vim /etc/yum.repos.d/city-fan.repo [CityFan] name=City Fan Repo baseurl=http://www.city-fan.org/ftp/contrib/yum-repo/rhel$releasever/$basearch/ enabled=1 gpgcheck=0 # yum clean all # yum install curl
安装的可执行程序
curl
is a command line tool for transferring files with URL syntax.
curl-config
prints information about the last compile, like libraries linked to and prefix setting.
参考文献
Homepage: http://curl.haxx.se
Doc: https://curl.haxx.se/docs/manpage.html
Wiki: https://en.wikipedia.org/wiki/CURL
yum – Upgrade cURL to latest on CentOS – Server Fault