cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: Problem when retrieving cookies by using curl_easy_getinfo()

From: Robert Alm <still_at_telia.com>
Date: Wed, 15 Oct 2008 20:04:37 +0200

> -----Original Message-----
> From: curl-library-bounces_at_cool.haxx.se [mailto:curl-library-
> bounces_at_cool.haxx.se] On Behalf Of Joe Nardone
> Sent: den 15 oktober 2008 19:30
> To: libcurl development
> Subject: Re: Problem when retrieving cookies by using
> curl_easy_getinfo()
>
> > 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

Many thanks!
/Robert
Received on 2008-10-15