cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Cookie Secure flag

From: Ray Satiro via curl-library <curl-library_at_cool.haxx.se>
Date: Sat, 20 Feb 2016 01:55:21 -0500

On 2/18/2016 10:38 AM, Pierre Brico wrote:
> My next question is: is it possible to intercept the HTTP header
> (probably with callback function) to remove the "secure" flag BEFORE
> libcurl process it?

It's not possible with any of the callbacks as far as I know. The debug,
write and header callbacks if they are handling an incoming header line
are called in Curl_http_readwrite_headers but after the line is parsed,
and it's a copy not the original buffer (afaics).

-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2016-02-20