cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Problem when retrieving cookies by using curl_easy_getinfo()

From: Joe Nardone <jnardone_at_gmail.com>
Date: Wed, 15 Oct 2008 13:30:01 -0400

> The output I get is one single cookie which is printed:
>
> "localhost FALSE / FALSE 0 PHPSESSID
> b85trrss63s8pl2oovgg3mon13"
>
> This doesn't look good to me. What I was hoping for is a nice
> string specifyin only "PHPSESSID" and "b85trrss63s8pl2oovgg3mon13" which is
> the
> session ID cookie.
>
> What am I doing wrong?

Nothing. You're just not doing enough.

The cookies are returned in Netscape/Mozilla format.

http://curl.haxx.se/mail/archive-2005-03/0099.html

They are 7-field, tab-separated rows. The name and value are the last 2 values.

Joe
Received on 2008-10-15