libcurl库进行http通讯-开篇

Posted 江南-一苇渡江

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了libcurl库进行http通讯-开篇相关的知识,希望对你有一定的参考价值。

从今天开始介绍一些常用的库。
首先就来写一写关于libcurl库。

libcurl主要功能就是用不同的协议连接和沟通不同的服务器~也就是相当封装了的sockphp 支持libcurl(允许你用不同的协议连接和沟通不同的服务器)。, libcurl当前支持http, https, ftp, gopher, telnet, dict, file, 和ldap 协议。libcurl同样支持HTTPS证书授权,HTTP POST, HTTP PUT, FTP 上传(当然你也可以使用PHP的ftp扩展), HTTP基本表单上传,代理,cookies,和用户认证。

curl is an open source command line tool and library for transferring data with URL syntax, supporting DICT, FILE, FTP, FTPS, Gopher, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, POP3, POP3S, RTMP, RTSP, SCP, SFTP, SMB, SMTP, SMTPS, Telnet and TFTP. curl supports SSL certificates, HTTP POST, HTTP PUT, FTP uploading, HTTP form based upload, proxies, HTTP/2, cookies, user+password authentication (Basic, Plain, Digest, CRAM-MD5, NTLM, Negotiate and Kerberos), file transfer resume, proxy tunneling and more.

What’s curl used for?
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 totally affecting more than one billion users.

Who makes curl?

curl is free and open software that compiles and runs under a wide variety of operating systems. curl exists thanks to thousands of contributors.

What’s the latest curl?
The most recent stable version is 7.47.1, released on 8th of February 2016. Currently, 79 of the listed downloads are of the latest version.

Where’s the code?

Check out the latest source code from github.

下载地址:
https://curl.haxx.se/

github地址:
https://github.com/curl/curl

win32 in the table means that the package runs on Windows 95, 98, ME, NT 3, NT 4, 2000, XP and similar Operating Systems.

以上是关于libcurl库进行http通讯-开篇的主要内容,如果未能解决你的问题,请参考以下文章

libcurl库进行http通讯-一些基本的函数

cURL资源的初步使用

libcurl多线程超时设置不安全(转)

curl模拟http请求

Libcurl库——HTTP协议实现

使用libcurl下载文件小例