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.
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
Reference from http://blog.csdn.net/wh211212/article/details/54285921Command: CurlIn Linux, Curl is a file transfer tool that works under the command line using URL rules, which can be said to be a powerful HTTP command-line tool. It supports file
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
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
Curl is a file transfer tool that uses URL syntax to work in a command-line manner. It supports many protocols: FTP, FTPS, HTTP, HTTPS, GOPHER, TELNET, DICT, FILE, and LDAP. Curl also supports HTTPS authentication, HTTP POST method, HTTP put method,
This article is http://www.51osos.com/a/Linux_CentOS_RedHat/Linuxjichu/2010/1025/curl.html and http://hi.baidu.com/yschen0925/ Summary of the blog/item/d62851072f10eaca7b894790.html.
Today 51 open Source to give you a detailed explanation curl this
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
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.