cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: cookie interface suggestion

From: Cris Bailiff <c.bailiff_at_awayweb.com>
Date: Fri, 20 Jun 2003 23:58:55 +1000

On Thu, 19 Jun 2003 11:47 pm, Daniel Stenberg wrote:
> On Thu, 19 Jun 2003, Cris Bailiff wrote:

> > I would like to just be able to ask for the string version of the jar
> > (the file contents)
>
> You mean a big chunk of data, looking just like a cookie jar file does?

Yes (though I don't care much about the format - any kind of blob will
suffice).

> > or by getting a (public) API to the internal structure to iterate through
> > and store the cookies.
>
> You can do that with the GET option in my draft.

Yes - it just means more external code, whereas libcurl already has the code
which makes the

> I think the one-by-one approach makes more sense, as that allows the
> application to decide how/if/where each cookie is stored and also exactly
> which cookies that are sent back to libcurl at a later time. If it wants
> to.

I can deal either way, but I'd still like libcurl to make the decision on
whether the cookie applies for a request (i.e. I'd want to pass all the
cookies I have back in, one-by-one if necessary, and have libcurl use the
ones which are correct for this request).

> Passing "cookie jar" file formatted contents back and forth would only make
> sense if the cookies always are to be treated as an opaque lump.

:-) Thats exactly what I'd like! I share a bunch of handles between different
client 'sessions', and currently have to pull the cookies out one by one, and
choose which ones to put back (the hard part), in external code.

Cheers,
Cris

-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
Received on 2003-06-22