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
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 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
Have previously shared a framework based on COCOS2DX and the server using the socket to communicate, but also unfamiliar to the following blog post:"C/S communication interaction Socket" COCOS2DX (Client) use BSD socket and Mina (Server) mobile
Curl Technical Knowledge Tutorial series of technical course finishing
There is time to keep updating, we have any good recommendations can be in the following reply, I will, as appropriate, my CSDN blog: http://blog.csdn.net/hello_katty
One of the
Document directory
Specify "User-Agent :"
3. Use "-H" to modify or add an HTTP Header
4. Specify "Referer :"
5. Get the returned HTTP Header
Set the username and password in HTTP Basic Authentication
7. process HTTP Cookies
8. POST form
C language curl
Two days ago, I saw someone asking the client socket to send the http package code. I was inspired by the FLW Moderator to find some Perl materials, but I am still not familiar with Perl. There is no in-depth research. The library
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,
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.