cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Reading cookies during the session.

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Mon, 23 May 2005 00:48:32 +0200 (CEST)

On Sun, 22 May 2005, Patryk Cisek wrote:

> I need to read the cookies during the HTTP session. CURLOPT_COOKIEJAR causes
> to save all cookies to a file (so I can read them) during cleanup, so if I
> want to browse the cookies have to restart the session. Is there more
> elegant way?

Nope. Unless you catch the headers and parse the cookies yourself.

We talk about a new cookie API[*] every now and then, but that has remained
nothing but talk.

[*] = http://curl.haxx.se/dev/COOKIES-new

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2005-05-23