cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Some Cookie related queries

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 29 Jan 2008 12:48:38 +0100 (CET)

On Tue, 29 Jan 2008, aniket ray wrote:

> I wanted to know whether curl_easy_cleanup is synchronous?

Yes it is. I couldn't even work any other way...

> After we return from the function, can we expect are cookie jar file to be
> consistent and complete with all cookies.

Yes.

> Also, how do I separate different cookies in the COOKIELIST string. i.e. I
> have plenty of cookies in netscape format that I want to pass to
> curl_easy_setopt with the COOKIELIST parameter, what separator character do
> I use (newline or semi-colon ?)

You pass in a single line with a single cookie, so if you have multiple
cookies to set you call curl_easy_setopt with the COOKIELIST parameter many
times.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2008-01-29