curl-library
Re: getting SessionHandle values
Date: Fri, 20 May 2016 00:22:08 +0200
> looking at the SessionHandle struct, and wondering: how do people
retrieve current values from the structure?
There is no official API to retrieve the current settings.
curl_easy_getinfo() is not the counterpart of curl_easy_setopt(), and
there is no curl_easy_getopt().
For options like CURLOPT_HTTPHEADER and CURLOPT_CONNECT_TO, applications
need to keep the list until the transfer completes, because libcurl will
not copy the list. Therefore applications that use these options must
keep a reference to the list anyway.
Regards,
Michael
-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2016-05-20