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
Linux Curl is a tool for uploading or downloading files under the command line via URL syntax, which supports a variety of protocols such as http,https,ftp,ftps,telnet, which are often used to crawl Web pages and monitor the status of Web Servers.
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
[PHP]
Class Curl {
/*
* Get method get access to specified address
* @param the address to be accessed by the string URL
* @param the storage address of a string cookie cookie, no cookie is sent
* @return string curl_exec () gets the information
*
Currently, php provides the most comprehensive CURL description in Chinese. In PHP, the CURL Function Library (ClientURLLibraryFunction) curl_close-closes a curl session curl_copy_handle-copies all content of a curl connection resource and the CURL
[Php]Class Curl { /** Get access to the specified address* @ Param string url the address to be accessed* @ Param string cookie: The storage address of the cookie. If no cookie exists, no cookie is sent.* @ Return string curl_exec () information
Curl Libraries in PHP (Client URL library function)
curl_close-closing a Curl session
curl_copy_handle-Copy all the contents and parameters of a Curl connection resource
curl_errno-returns a numeric number that contains the current session error
Linux Command curl command details, linux Command curl detailsCommand: curlIn linux, curl is a File Transfer tool that uses URL rules to work under the command line. It can be said that it is a powerful http command line tool. It supports file
index.php/*Using the PHP Curl Library, you can easily and effectively grab pages. Just run a script, then analyze the crawled pages, and then you can get the data you want in a program.Whether you want to take part of the data from a link, or take
Currently, the most comprehensive CURL Chinese explanation shows that PHP learning should be well mastered. There are many parameters. Most of them are useful. If you have mastered it and regular expressions, you must be a collection expert.
First,
Getting started with curl in PHP. Getting started with curl in PHP this article mainly introduces the Getting Started with curl in PHP, this article explains curl overview, installation of curl, steps for using curl in PHP, and a simple curl code
Currently, the most comprehensive CURL Chinese explanation shows that PHP learning should be well mastered. There are many parameters. Most of them are useful. If you have mastered it and regular expressions, you must be a collection expert. First,
Curl function library in PHP (Client URL library function)
Curl_close-closes a Curl session
curl_copy_handle-copies all the contents and parameters of a Curl connection resource
curl_errno-returns a numeric number containing the current session
First, write a simple crawl page function
Copy Code code as follows:
function Getsources ($URL, $User _agent= ', $Referer _url= ')//crawl a specified page
{
$URL page address that needs to be crawled
$User _agent need to return
A few days ago, curllib was used in the project, so a source code package was compiled. There were some minor problems in the compilation process. Here, I will share with you the methods for compiling and using this library:
First, go to http://curl.
Curl usage in php CURL Library Function in PHP)
Curl_close? Close a curl sessionCurl_copy_handle? Copy all content and parameters of a curl connection resourceCurl_errno? Returns a number that contains the current session error message.Curl_error?
Provides various official and user-released code examples. For code reference, you are welcome to exchange and learn more about the comprehensive CURL function library Chinese description.
I think the CURL function library more comprehensive Chinese
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.