F.8. Curl
Function | Returns | Description |
---|---|---|
curl_version([int version]) | array | Returns CURL version information. |
curl_init([string url]) | resource | Initializes a CURL session. |
curl_setopt(resource ch, string option, mixed value) | bool | Sets an option for a CURL transfer. |
curl_exec(resource ch) | bool | Performs a CURL session. |
curl_getinfo(resource ch, int opt) | mixed | Gets information regarding a specific transfer. |
curl_error(resource ch) | string | Returns a string containing the last error for the current session. |
curl_errno(resource ch) | int | Returns an integer containing the last error number. |
curl_close(resource ch) | void | Closes a CURL session. |
curl_multi_init(void) | resource | Returns a new CURL multi handle. |
curl_multi_add_handle(resource multi, resource ch) | int | Adds a normal CURL handle to a CURL multi handle. |
curl_multi_remove_handle(resource mh, resource ch) | int | Removes a multi handle from a set of CURL handles. |
curl_multi_select(resource mh[, double timeout]) | int | Gets all the sockets associated with the CURL extension, which can then be selected. |
curl_multi_exec(resource mh) | int | Runs the subconnections of the current CURL handle. |
curl_multi_getcontent(resource ch) | string | Returns the content of a CURL handle if CURLOPT_RETURNTRANSFER is set. |
curl_multi_info_read(resource mh) | array | Gets information about the current transfers. |
curl_multi_close(resource mh) | void | Closes a set of CURL handles. |
Get Web Standards Programmer's Reference: HTML, CSS, JavaScript®, Perl, Python®, and PHP now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.