Page 1 of 1

hbCURL how to get received headers?

Posted: Sat Sep 10, 2022 12:42 pm
by edk
Does anybody know how to read the received headers in libcurl?

I can see the headers only in the console window with the curl_easy_setopt (hCurl, HB_CURLOPT_VERBOSE, 1) option turned on.
I have failed to redirect the VERBOSE stream to the file, I tried to use curl_easy_setopt (hcurl, HB_CURLOPT_STDERR, pfile), but the file assigned to the pfile handle is empty.

Also the curl_easy_setopt (hCurl, HB_CURLOPT_WRITEHEADER, pFile) and curl_easy_setopt (hCurl, HB_CURLOPT_HEADERFUNCTION, @call_back ()) options do not seem to work :(
Any working example?

Edward.

Re: hbCURL how to get received headers?

Posted: Sat Sep 10, 2022 1:21 pm
by serge_girard
I'm afraid I don't! Sorry!
Serge