Request internal information from the curl session with this function. The type
argument
specifies what information should be retrieved. Use this function AFTER a performed transfer
if you want to get transfer related data.
The following types are currently supported for type
:
#CURLINFO_APPCONNECT_TIME
-
Time from start until SSL/SSH handshake completed. See easy:GetInfo_AppConnect_Time for details.
#CURLINFO_APPCONNECT_TIME_T
-
Time from start until SSL/SSH handshake completed. See easy:GetInfo_AppConnect_Time_t for details. (V2.0)
#CURLINFO_CAINFO
-
Get the default built-in CA certificate path. See easy:GetInfo_CAInfo for details. (V2.0)
#CURLINFO_CAPATH
-
Get the default built-in CA path string. See easy:GetInfo_CAPath for details. (V2.0)
#CURLINFO_CERTINFO
-
Certificate chain. See easy:GetInfo_CertInfo for details.
#CURLINFO_CONDITION_UNMET
-
Whether or not a time conditional was met. See easy:GetInfo_Condition_Unmet for details.
#CURLINFO_CONNECT_TIME
-
Time from start until remote host or proxy completed. See easy:GetInfo_Connect_Time for details.
#CURLINFO_CONNECT_TIME_T
-
Time from start until remote host or proxy completed. See easy:GetInfo_Connect_Time_t for details. (V2.0)
#CURLINFO_CONTENT_LENGTH_DOWNLOAD
-
(Deprecated) Content length from the Content-Length header. See easy:GetInfo_Content_Length_Download for details.
#CURLINFO_CONTENT_LENGTH_DOWNLOAD_T
-
Content length from the Content-Length header. See easy:GetInfo_Content_Length_Download_t for details.
#CURLINFO_CONTENT_LENGTH_UPLOAD
-
(Deprecated) Upload size. See easy:GetInfo_Content_Length_Upload for details.
#CURLINFO_CONTENT_LENGTH_UPLOAD_T
-
Upload size. See easy:GetInfo_Content_Length_Upload_t for details.
#CURLINFO_CONTENT_TYPE
-
Content type from the Content-Type header. See easy:GetInfo_Content_Type for details.
#CURLINFO_COOKIELIST
-
List of all known cookies. See easy:GetInfo_CookieList for details.
#CURLINFO_EFFECTIVE_METHOD
-
Last used HTTP method. See easy:GetInfo_Effective_Method for details. (V2.0)
#CURLINFO_EFFECTIVE_URL
-
Last used URL. See easy:GetInfo_Effective_URL for details.
#CURLINFO_FILETIME
-
Remote time of the retrieved document. See easy:GetInfo_FileTime for details.
#CURLINFO_FTP_ENTRY_PATH
-
The entry path after logging in to an FTP server. See easy:GetInfo_FTP_Entry_Path for details.
#CURLINFO_HEADER_SIZE
-
Number of bytes of all headers received. See easy:GetInfo_Header_Size for details.
#CURLINFO_HTTP_CONNECTCODE
-
Last proxy CONNECT response code. See easy:GetInfo_HTTP_ConnectCode for details.
#CURLINFO_HTTP_VERSION
-
The http version used in the connection. See easy:GetInfo_HTTP_Version for details.
#CURLINFO_HTTPAUTH_AVAIL
-
Available HTTP authentication methods. See easy:GetInfo_HTTPAuth_Avail for details.
#CURLINFO_LASTSOCKET
-
Last socket used. See easy:GetInfo_LastSocket for details.
#CURLINFO_LOCAL_IP
-
Local-end IP address of last connection. See easy:GetInfo_Local_IP for details.
#CURLINFO_LOCAL_PORT
-
Local-end port of last connection. See easy:GetInfo_Local_Port for details.
#CURLINFO_NAMELOOKUP_TIME
-
Time from start until name resolving completed. See easy:GetInfo_NameLookup_Time for details.
#CURLINFO_NAMELOOKUP_TIME_T
-
Time from start until name resolving completed. See easy:GetInfo_NameLookup_Time_t for details. (V2.0)
#CURLINFO_NUM_CONNECTS
-
Number of new successful connections used for previous transfer. See easy:GetInfo_Num_Connects for details.
#CURLINFO_OS_ERRNO
-
The errno from the last failure to connect. See easy:GetInfo_OS_ErrNo for details.
#CURLINFO_PRETRANSFER_TIME
-
Time from start until just before the transfer begins. See easy:GetInfo_PreTransfer_Time for details.
#CURLINFO_PRETRANSFER_TIME_T
-
Time from start until just before the transfer begins. See easy:GetInfo_PreTransfer_Time_t for details. (V2.0)
#CURLINFO_PRIMARY_IP
-
IP address of the last connection. See easy:GetInfo_Primary_IP for details.
#CURLINFO_PRIMARY_PORT
-
Port of the last connection. See easy:GetInfo_Primary_Port for details.
#CURLINFO_PROTOCOL
-
The protocol used for the connection. See easy:GetInfo_Protocol for details.
#CURLINFO_PROXY_ERROR
-
Detailed proxy error. See easy:GetInfo_Proxy_Error for details. (V2.0)
#CURLINFO_PROXY_SSL_VERIFYRESULT
-
Proxy certificate verification result. See easy:GetInfo_Proxy_SSL_VerifyResult for details.
#CURLINFO_PROXYAUTH_AVAIL
-
Available HTTP proxy authentication methods. See easy:GetInfo_ProxyAuth_Avail for details.
#CURLINFO_REDIRECT_COUNT
-
Total number of redirects that were followed. See easy:GetInfo_Redirect_Count for details.
#CURLINFO_REDIRECT_TIME
-
Time taken for all redirect steps before the final transfer. See easy:GetInfo_Redirect_Time for details.
#CURLINFO_REDIRECT_TIME_T
-
Time taken for all redirect steps before the final transfer. See easy:GetInfo_Redirect_Time_t for details. (V2.0)
#CURLINFO_REDIRECT_URL
-
URL a redirect would take you to, had you enabled redirects. See easy:GetInfo_Redirect_URL for details.
#CURLINFO_REFERER
-
Referrer header. See easy:GetInfo_Referer for details. (V2.0)
#CURLINFO_REQUEST_SIZE
-
Number of bytes sent in the issued HTTP requests. See easy:GetInfo_Request_Size for details.
#CURLINFO_RESPONSE_CODE
-
Last received response code. See easy:GetInfo_Response_Code for details.
#CURLINFO_RETRY_AFTER
-
The value from the from the Retry-After header. See easy:GetInfo_Retry_After for details. (V2.0)
#CURLINFO_RTSP_CLIENT_CSEQ
-
RTSP CSeq that will next be used. See easy:GetInfo_RTSP_Client_CSeq for details.
#CURLINFO_RTSP_CSEQ_RECV
-
RTSP CSeq last received. See easy:GetInfo_RTSP_CSeq_Recv for details.
#CURLINFO_RTSP_SERVER_CSEQ
-
RTSP CSeq that will next be expected. See easy:GetInfo_RTSP_Server_CSeq for details.
#CURLINFO_RTSP_SESSION_ID
-
RTSP session ID. See easy:GetInfo_RTSP_Session_ID for details.
#CURLINFO_SCHEME
-
The scheme used for the connection. See easy:GetInfo_Scheme for details.
#CURLINFO_SIZE_DOWNLOAD
-
(Deprecated) Number of bytes downloaded. See easy:GetInfo_Size_Download for details.
#CURLINFO_SIZE_DOWNLOAD_T
-
Number of bytes downloaded. See easy:GetInfo_Size_Download_t for details.
#CURLINFO_SIZE_UPLOAD
-
(Deprecated) Number of bytes uploaded. See easy:GetInfo_Size_Upload for details.
#CURLINFO_SIZE_UPLOAD_T
-
Number of bytes uploaded. See easy:GetInfo_Size_Upload_t for details.
#CURLINFO_SPEED_DOWNLOAD
-
(Deprecated) Average download speed. See easy:GetInfo_Speed_Download for details.
#CURLINFO_SPEED_DOWNLOAD_T
-
Average download speed. See easy:GetInfo_Speed_Download_t for details.
#CURLINFO_SPEED_UPLOAD
-
(Deprecated) Average upload speed. See easy:GetInfo_Speed_Upload for details.
#CURLINFO_SPEED_UPLOAD_T
-
Average upload speed. See easy:GetInfo_Speed_Upload_t for details.
#CURLINFO_SSL_ENGINES
-
A list of OpenSSL crypto engines. See easy:GetInfo_SSL_Engines for details.
#CURLINFO_SSL_VERIFYRESULT
-
Certificate verification result. See easy:GetInfo_SSL_VerifyResult for details.
#CURLINFO_STARTTRANSFER_TIME
-
Time from start until just when the first byte is received. See easy:GetInfo_StartTransfer_Time for details.
#CURLINFO_STARTTRANSFER_TIME_T
-
Time from start until just when the first byte is received. See easy:GetInfo_StartTransfer_Time_t for details. (V2.0)
#CURLINFO_TOTAL_TIME
-
Total time of previous transfer. See easy:GetInfo_Total_Time for details.
#CURLINFO_TOTAL_TIME_T
-
Total time of previous transfer. See easy:GetInfo_Total_Time_t for details. (V2.0)