> 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

Reply via email to