I’m trying to clear all stored cookies in Libcurl (version 7.21.6) but
nothing really seems to work.
What command should I use?
I’m using the C-binding version.
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can’t “clear” a cookie file (on disk) with libcurl. Just remove it from the file system with a normal system function such as unlink() or zero it with truncate().
You can clear all cookies libcurl knows about in memory with CURLOPT_COOKIELIST “ALL”.