cURL - is a free, cross-platform utility / library to transfer files via various protocols with the syntax of URL. Official site: http://curl.haxx.se/ , with full documentation and the product itself.
The basic functions to work with cURL in php:
curl_close - Close the session with cURL
curl_copy_handle - Copy cURL handler along with the rules
curl_errno - return an error number
curl_error - return a textual description of the error
curl_exec - execute cURL request
curl_getinfo - return information about the results of cURL
curl_init - Initialize the object cURL
curl_multi_add_handle - add a regular session cURL, a multi-threaded
curl_multi_close - close threading session
curl_multi_exec - multithreaded cURL session
curl_multi_getcontent - return content cURL request, if CURLOPT_RETURNTRANSFER == true
curl_multi_info_read - return information about the current state of multi-threaded query
curl_multi_init - cURL object initialization for multi query
curl_multi_remove_handle - remove the ordinary session of the multi-threaded cURL request
curl_multi_select - expect activity from any thread in a multithreaded cURL request
curl_setopt_array - specify a set of cURL options data as an array
curl_setopt - set one option cURL request
curl_version - return the version of cURL
Usage:
1.snachala create cURL object - function curl_init
2.zatem sets the parameters for the query - curl_setopt_array function and / or curl_setopt
3.vypolnyaem request and collect data - curl_exec
Monday, June 20, 2011
How to work with cURL
Website
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Confused? Feel free to ask
Your feedback is always appreciated. I will try to reply to your queries as soon as time allows.
Note:
Please do not spam Spam comments will be deleted immediately upon my review.