Re: getting SessionHandle values

2016-05-19 Thread bch
On 5/19/16, Michael Kaufmann 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

Re: getting SessionHandle values

2016-05-19 Thread Michael Kaufmann
> 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

Re: getting SessionHandle values

2016-05-19 Thread bch
...and now I'm seeing that CURLINFO_COOKIELIST is an slist-returning curl_easy_getinfo() value... This might be adaptable to the apparently missing CONNECT_TO, etc options via getinfo_slist()... Pardon me for "thinking out-loud" on the list :/ -bch On 5/19/16, bch

getting SessionHandle values

2016-05-19 Thread bch
Am just reviewing the new CURLOPT_CONNECT_TO, looking at the SessionHandle struct, and wondering: how do people retrieve current values from the structure? Is there a blessed way to get the slists, or do people muck about the struct and pull it manually, or has there been no call for introspecting