cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: cookie interface suggestion

From: Bo Lorentsen <bl_at_netgroup.dk>
Date: 19 Jun 2003 09:41:27 +0200

On Thu, 2003-06-19 at 08:53, Daniel Stenberg wrote:

> That's truly an idea I like. See below for my suggested approach on this.
How nice !

> The life span problem would be a subject for the external cookie handler to
> take care of, libcurl will then just ask the app for what cookies to pass to
> a given site, and only non-expired cookies should be in that list...
Perfect, so if you use the curl cookies, curl itself will maintain the
data lifespan, and otherwise its up to you.

Nice and simple !

> So, my suggestion gets extended by this:
>
> SENDFUNC - set a function pointer that is called by libcurl each time a HTTP
> request (that can return a set of cookies for libcurl to use in this
> request) is about to be sent over the network by libcurl, the
> function should match this prototype:
Yeps, this is so nice !

/BL

-------------------------------------------------------
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-19