cURL / Mailing Lists / curl-library / Single Mail


Re: getting SessionHandle values

From: Michael Kaufmann <>
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.

List admin:
Received on 2016-05-20