curl-library
Re: getting SessionHandle values
Date: Thu, 19 May 2016 15:47:10 -0700
On 5/19/16, Michael Kaufmann <mail_at_michael-kaufmann.ch> wrote:
> > 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.
That sounds like a good description, and is illuminating. Thanks.
-bch
> Regards,
> Michael
> -------------------------------------------------------------------
> List admin: https://cool.haxx.se/list/listinfo/curl-library
> Etiquette: https://curl.haxx.se/mail/etiquette.html
-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2016-05-20