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: Jim Young via curl-users <curl-users_at_cool.haxx.se>
Date: Wed, 2 Oct 2019 15:57:10 -0500

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

-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2019-10-02