CURL.1 manual page
Name
Curl-transfer a URL
Summary
curl[options] [URL ...]
Describe
CURL is a tool that transmits data to or from the server, which supports HTTP, HTTPS,
Protocols such as FTP, FTPS, SCP, SFTP, TFTP, DICT, TELNET, LDAP, or
CURL is a tool that uses URL syntax to transmit files and data. it supports many protocols, such as HTTP, FTP, and TELNET. the best thing is that PHP also supports the cURL Library. PHP cURL library can be simple
1. what is CURL?CURL is a tool that
One, what is curl?CURL is a tool that uses URL syntax to transfer files and data, and supports many protocols, such as HTTP, FTP, Telnet, and so on. Best of all, PHP also supports the CURL library. Using the PHP Curl Library, you can easily and
Demo Code
Operation effect (Figure 1)
Operation effect (Figure 2)
Main Package function
Multi_process ();According to the parameters, create the number of pointers to the child process.Bright spot Function 1: The
Curl can use the syntax of the URL to simulate a browser to transfer data,Because it is a mock browser, it also supports multiple protocols,Protocols such as FTP, FTPS, HTTP, HTTPS, GOPHER, TELNET, DICT, FILE, and LDAP can all be well supported,
PHP Curl Instance + detailed, Phpcurl
Directly on the instance
Php//Create a new curl resource $ch=Curl_init ();URL transcoding for special characters such as Chinese$aurl=UrlEncode($address); $url=
First Category:For the optional Arguments for option below, value should be set to a value of type bool:OptionsOptional value valueNoteCurlopt_autorefererAutomatically sets the Referer: information in the header when redirected according to location:
First Class:For the optional parameters of these options below, value should be set to a bool type:OptionsOptional value valuesNoteCurlopt_autorefererReferer: Information is automatically set in the header when based on location: redirection.Curlopt_
Function Prototypes:#include Curlcodecurl_easy_setopt (CURL *handle, curloption option, parameter);DescriptionThis function is used to tell libcurl what action to perform. The function has 3 parameters (the function can be set to many options):The
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.