hbCURL how to get received headers?

HMG en Español

Moderator: Rathinagiri

Post Reply
edk
Posts: 999
Joined: Thu Oct 16, 2014 11:35 am
Location: Poland

hbCURL how to get received headers?

Post 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.
User avatar
serge_girard
Posts: 3342
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: hbCURL how to get received headers?

Post by serge_girard »

I'm afraid I don't! Sorry!
Serge
There's nothing you can do that can't be done...
Post Reply