curl / Mailing Lists / curl-users / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

RE: CURLOPT_HEADERFUNCTION and buffer modifications

From: Clément Gregoire via curl-users <>
Date: Thu, 3 Oct 2019 08:00:56 +0000

Oh thanks and sorry for not noticing while it was actually written in bold.
Have a nice day,

De : curl-users [] De la part de Jim Young via curl-users
Envoyé : mercredi 2 octobre 2019 22:57
À : Clément Gregoire via curl-users <>
Cc : Jim Young <>
Objet : Re: CURLOPT_HEADERFUNCTION and buffer modifications

On 10/2/2019 8:52 AM, Clément Gregoire via curl-users wrote:
I'm using CURLOPT_HEADERFUNCTION to read/parse headers, and it'd be useful for me if I could replace some characters with for example the '\0'. Typical usage would be for strtok.
Is this allowed ?
I know the header callback buffer member is `char*` and not `const char*` but I still wanted to make sure.

Hi Clement - you might want to pose your question to the libcurl mailing list. That's where people using the libcurl Curl hackers congregate. This forum is aimed more at command line curl users (though, of course, there is some overlap.)

Jim Young

Received on 2019-10-03