Use of Curl

Source: Internet
Author: User
Tags http post

Because of the use of the open Source Library in the project team, I would like to dissect this open source library and see what's in it.

Curl Open source Project maintenance for many years, is still ongoing maintenance and refinement, providing network requests for command-line tools and libraries; The supported protocols are: 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 Tunne Ling and more. So visible, how powerful it is.

How to use: 1: On the command line, you can download some network resources by adding some parameters to the Curl command.

2: In the project, simplify the operation of the network request by introducing Libcurl:

1): Through the easy interface to use, easy structure is synchronous, efficiency comparison, easier to use, a lot of synchronization-based network request application degree is based on this writing. Reference URL Link:https://curl.haxx.se/libcurl/c/libcurl-easy.html

2): Through the Multi interface is used, this way is asynchronous, while supporting multi-threaded operation; Multi interface is: https://curl.haxx.se/libcurl/c/libcurl-multi.html

Use of Curl

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.