cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Question about cookies

From: Jonathan Wallace <jwallace_at_livetechnology.com>
Date: Fri, 11 Sep 2009 14:51:23 -0400

That looks promising, but how do I use it? I see two public methods
on the curl_slist struct, data and next. How do I get the cookie's
name and data out of it?

On Sep 11, 2009, at 2:37 PM, Ralph Mitchell wrote:

> On Fri, Sep 11, 2009 at 1:18 PM, Jonathan Wallace <jwallace_at_livetechnology.com
> > wrote:
> Is it possible to get a list of cookies from the return header so
> that I can tokenize it and record them in my application. Currently
> I'm using a CURLOPT_DEBUGFUNCTION and CURLOPT_VERBOSE to retrieve
> the header and tokenize and I'm wondering if there is a more elegant
> and faster way to do this?
>
> How about CURLINFO_COOKIELIST?? That gets you a linked list of all
> cookies curl knows about.
>
> Ralph Mitchell
>
Received on 2009-09-11