cURL
Haxx ad
libcurl

Shopping cart software, Online file storage, Online photo storage, Hosted shopping cart, Contact management software, Email marketing software, Project management software, Issue tracking software, Online notepad, Web publishing software

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-library Archives

Re: Implementing a HTTP cookie callback

From: Drew Richardson <drewrichardson_at_gmail.com>
Date: Sun, 8 Nov 2009 13:06:25 -0700

On Sun, Nov 8, 2009, Daniel Stenberg wrote:
> On Sun, 8 Nov 2009, Drew Richardson wrote:
>
>> After doing some googling it seem that libcurl does not provide callbacks to
>> give cookies for a HTTP GET/POST or a callback with the returned cookies on
>> the response.  Yes, I know I could manually add the cookies myself, then
>> manually parse the return, but libcurl already knows how to do this kind of
>> stuff, why reimplement it?
>
> Or you can let libcurl receive them and parse them and you can then get them
> from libcurl with COOKIELIST. Can you elaborate on your use case and why
> COOKIELIST isn't enough? Or perhaps put differently, what do you miss in the
> COOKIELIST interface?

COOKIELIST appears to do what I wanted. Sorry, I had my blinders on
and was only reading the setopt page and didn't look at the getinfo
page. Thanks for your help.
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2009-11-08

These mail archives are generated by hypermail.

donate! Page updated November 16, 2009.
web site info

File upload with ASP.NET