mirror of
https://github.com/curl/curl.git
synced 2026-07-16 01:17:16 +03:00
Added curl_easy_getinfo()
This commit is contained in:
parent
e372a440c0
commit
b0274a553b
2 changed files with 12 additions and 0 deletions
10
lib/easy.c
10
lib/easy.c
|
|
@ -162,3 +162,13 @@ void curl_easy_cleanup(CURL *curl)
|
|||
curl_close(curl);
|
||||
curl_free();
|
||||
}
|
||||
|
||||
CURLcode curl_easy_getinfo(CURL *curl, CURLINFO info, ...)
|
||||
{
|
||||
va_list arg;
|
||||
void *paramp;
|
||||
va_start(arg, info);
|
||||
paramp = va_arg(arg, void *);
|
||||
|
||||
return curl_getinfo(curl, info, paramp);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -724,10 +724,12 @@ CURLcode curl_transfer(CURL *curl)
|
|||
if(data->newurl)
|
||||
free(data->newurl);
|
||||
|
||||
#if 0
|
||||
if((CURLE_OK == res) && data->writeinfo) {
|
||||
/* Time to output some info to stdout */
|
||||
WriteOut(data);
|
||||
}
|
||||
#endif
|
||||
return res;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue