curl / Mailing Lists / curl-library / 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.

CURLOPT_HEADERFUNCTION and buffer modifications

From: Clément Gregoire via curl-library <>
Date: Thu, 3 Oct 2019 08:06:44 +0000


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.

Clément Gregoire | Engine Programmer
ASOBO Studio
23 Parvis des Chartrons, 33074 Bordeaux Cedex France
P +33 5 56 01 04 98 | M | W<> | f<> / t<> @AsoboStudio<>

L'intégrité de ce message n'étant pas assurée sur internet, ASOBO STUDIO ne peut être tenue responsable de son contenu. Toute utilisation ou diffusion non autorisée est interdite. Si vous n'êtes pas destinataire de ce message, merci de le détruire et d'avertir l'expéditeur. Les opinions, conclusions, idées exprimées dans ce message, qui seraient sans relation avec l'activité d'ASOBO STUDIO, ne peuvent être considérées ni comme émises ni comme approuvées par ASOBO STUDIO. The integrity of this message cannot be guaranteed on the Internet. ASOBO STUDIO cannot therefore be considered responsible for the contents. Any unauthorized use or dissemination is prohibited. If you are not the intended recipient of this message, then please delete it and notify the sender. Opinions, conclusions, or other statements in this message which do not relate to the business of ASOBO STUDIO are neither given nor endorsed by ASOBO STUDIO.


        Avant d'imprimer, pensez à l'environnement - Think about environment before printing


Received on 2019-10-03