Re: cURL and cookies

i dont think it is possible as far as my knowledge goes, because the cookies are browser and site dependent. Usually cUrl stores cookies in the Netscape format.

and also definitely you wont be able to do it with your code because the cookies can only be accessed by the domain which sets it( that is why the cookies are secure ).

But one thing you can do is,

You can always read the cookie file that is used by the cURL using a text editor.

Once i came across something similar and what i did is, i used the cURL in my server to get the correct values for the cookies for that account and then i logined to the site from my system using mozilla and when they set the cookies i used a mozilla addon to edit cookies ( many available ), and i set the values maually as the same as tht on the cookie saved by the cURL. It workd like a charm.. But i am not sure wether it vl work on every system or not.