目的
这是一篇连续的博客,主要用来记录curl学习一段过程,同时整理curl学习过程中遇到的一些问题与解决方案。
引用
curl 文档说明
curl cookbook
多线程使用libcurl
curl 用法指南
什么是curl?
command line tool and library for transferring data with URLs (通过urls进行数据传输的命令行工具或者库–脚本)
curl 用来做什么
curl is used in command lines or scripts to transfer data. It is also used in cars, television sets, routers, printers, audio equipment, mobile phones, tablets, settop boxes, media players and is the internet transfer backbone for thousands of software applications affecting billions of humans daily.
curl在命令行或脚本中用于传输数据。它还被用于汽车、电视机、路由器、打印机、音频设备、移动电话、平板电脑、机顶盒、媒体播放器,并且是每天影响数十亿人的数以千计的软件应用程序的互联网传输中枢。
curl 是常用的命令行工具,用来请求 Web 服务器。它的名字就是客户端(client)的 URL 工具。
它支持的协议
DICT,FILE,FTP, FTPS, Gopher, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, MQTT, POP3, POP3S, RTMP, RTMPS, RTSP, SCP, SFTP, SMB, SMBS, SMTP, SMTPS, Telnet和TFTP。curl支持SSL证书、HTTP POST、HTTP PUT、FTP上传、基于HTTP表单的上传、代理、HTTP/2、HTTP/3、cookie、用户+密码认证(基本、普通、摘要、CRAM-MD5、NTLM、Negotiate和Kerberos)、文件传输恢复、代理隧道等等。