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.

CURLOPT_HEADERFUNCTION and buffer modifications

From: Clément Gregoire via curl-users <curl-users_at_cool.haxx.se>
Date: Wed, 2 Oct 2019 13:52:47 +0000

Hi,

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.

Thanks
Clément Gregoire | Engine Programmer
[cid:image001.png_at_01D20DC8.28466CD0]
ASOBO Studio
23 Parvis des Chartrons, 33074 Bordeaux Cedex France
P +33 5 56 01 04 98 | M cgregoire@asobostudio.com | W www.asobostudio.com<http://www.asobostudio.com/> | f<http://www.facebook.com/asobostudio/> / t<http://www.twitter.com/AsoboStudio> @AsoboStudio<http://www.twitter.com/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.

        [cid:image004.png_at_01CEFD6E.796BF070]

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

-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://curl.haxx.se/mail/etiquette.html

image001.png
image002.png
image003.jpg
Received on 2019-10-02