470,833 Members | 1,438 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,833 developers. It's quick & easy.

resetting curl's cookie jar

If you want cURL to deal with cookies for you, you need to give cURL
the name of a file you'd like to serve as the "cookie jar". This can
be done with CURLOPT_COOKIEFILE and CURLOPT_COOKIEJAR.

My question is... what if I want to empty the cookie jar? How might
I do that? Is it possible?
Jun 27 '08 #1
2 3324
yawnmoth schreef:
If you want cURL to deal with cookies for you, you need to give cURL
the name of a file you'd like to serve as the "cookie jar". This can
be done with CURLOPT_COOKIEFILE and CURLOPT_COOKIEJAR.

My question is... what if I want to empty the cookie jar? How might
I do that? Is it possible?
Hi yawnmoth,

Did you try simply making the file empty?

Regards,
Erwin Moller
Jun 27 '08 #2
yawnmoth wrote:
If you want cURL to deal with cookies for you, you need to give cURL
the name of a file you'd like to serve as the "cookie jar". This can
be done with CURLOPT_COOKIEFILE and CURLOPT_COOKIEJAR.

My question is... what if I want to empty the cookie jar? How might
I do that? Is it possible?
The easiest way would be to erase the files. Alternatively, you could
clear the fields in your CURL options.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Jun 27 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Phil Powell | last post: by
9 posts views Thread by Dave Martin | last post: by
12 posts views Thread by niftyhawk | last post: by
3 posts views Thread by Leo | last post: by
reply views Thread by nfhm2k | last post: by
9 posts views Thread by devranger | last post: by
3 posts views Thread by buzz2050 | last post: by
reply views Thread by mihailmihai484 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.