curl_getinfo

mixed curl_getinfo(int curld, [int info_option]) 
curld Handle of cURL session to query
info_option Constant indicating which information to get

Queries a cURL session for the status information.

Returns:

A string giving information about the state of the cURL session, or an associative array containing all known information

Description:

Queries the cURL session indicated by the curld parameter for information regarding the status of the session. This function is only available if the cURL library version is 7.4.1 or above and the PHP version is 4.0.4 or above.

The following constants are defined for the info_option parameter:

Constant Description
CURLINFO_EFFECTIVE_URL (string) Returns the effective URL as used in the most ...

Get PHP Functions Essential Reference 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.