F.8. Curl

FunctionReturnsDescription
curl_version([int version])
arrayReturns CURL version information.
curl_init([string url])
resourceInitializes a CURL session.
curl_setopt(resource ch, string option, mixed value)
boolSets an option for a CURL transfer.
curl_exec(resource ch)
boolPerforms a CURL session.
curl_getinfo(resource ch, int opt)
mixedGets information regarding a specific transfer.
curl_error(resource ch)
stringReturns a string containing the last error for the current session.
curl_errno(resource ch)
intReturns an integer containing the last error number.
curl_close(resource ch)
voidCloses a CURL session.
curl_multi_init(void)
resourceReturns a new CURL multi handle.
curl_multi_add_handle(resource multi, resource ch)
intAdds a normal CURL handle to a CURL multi handle.
curl_multi_remove_handle(resource mh, resource ch)
intRemoves a multi handle from a set of CURL handles.
curl_multi_select(resource mh[, double timeout])
intGets all the sockets associated with the CURL extension, which can then be selected.
curl_multi_exec(resource mh)
intRuns the subconnections of the current CURL handle.
curl_multi_getcontent(resource ch)
stringReturns the content of a CURL handle if CURLOPT_RETURNTRANSFER is set.
curl_multi_info_read(resource mh)
arrayGets information about the current transfers.
curl_multi_close(resource mh)
voidCloses 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.