cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: Cookie Secure flag

From: Yehezkel Horowitz <horowity_at_checkpoint.com>
Date: Wed, 9 Mar 2016 16:20:24 +0000

> 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?
You could just manage the cookies by yourself (instead of curl) and do whatever you want (even if not RFC compliant).
You could get the cookies from the server with “write header call back” [1] and set the cookies in future requests with CURLOPT_COOKIE [2].
[1] https://curl.haxx.se/libcurl/c/CURLOPT_HEADERFUNCTION.html
[2] https://curl.haxx.se/libcurl/c/CURLOPT_COOKIE.html
Same could be done with curl tool (not libcurl)
HTH
Yehezkel Horowitz

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