how to get data in the variable CURLOPT_FOLLOWLOCATION?
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION,1);
how to get data in the variable CURLOPT_FOLLOWLOCATION?
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION,1);
I see you have posted a number of similar questions about libcurl
here. Please find a reference for libcurl
and read it. Here is one:
When all is setup, you tell libcurl to perform the transfer using curl_easy_perform(3). It will then do the entire operation and won't return until it is done (successfully or not).
So, you get information from curl_easy_perform
. There is no data to get from curl_easy_setopt
because its purpose is to accept information from you.
Or, you might be looking for the CURLOPT_VERBOSE
argument to curl_easy_setopt
which tells libcurl
to print debugging information. It is impossible to tell from the question.