curl_easy_getinfo(3) | libcurl Manual | curl_easy_getinfo(3) |
curl_easy_getinfo - extract information from a curl handle
#include <curl/curl.h>
CURLcode curl_easy_getinfo(CURL *curl, CURLINFO info, ... );
Request internal information from the curl session with this function. The third argument MUST be a pointer to a long, a pointer to a char *, a pointer to a struct curl_slist * or a pointer to a double (as this documentation describes further down). The data pointed-to will be filled in accordingly and can be relied upon only if the function returns CURLE_OK. Use this function AFTER a performed transfer if you want to get transfer related data.
You should not free the memory returned by this function unless it is explicitly mentioned below.
The following information can be extracted:
An overview of the six time values available from curl_easy_getinfo() curl_easy_perform()
|
|--NAMELOOKUP
|--|--CONNECT
|--|--|--APPCONNECT
|--|--|--|--PRETRANSFER
|--|--|--|--|--STARTTRANSFER
|--|--|--|--|--|--TOTAL
|--|--|--|--|--|--REDIRECT
If the operation was successful, CURLE_OK is returned. Otherwise an appropriate error code will be returned.
November 4, 2020 | libcurl 7.74.0 |