cURL / Mailing Lists / curl-users / Single Mail

curl-users

cookie file used by CURL

From: Arunkumar Manickam <arun.ccjl_at_gmail.com>
Date: Mon, 18 Oct 2010 13:21:42 +0530

Hi,

I have two instances of my application running at the same time. It uses
CURLOPT_COOKIEFILE and CURLOPT_COOKIEJAR options.
Since it is the same application that is running, CURLOPT_COOKIEFILE is set
to the same file. The application would be talking to different http servers
based on how it is invoked and the command line arguments passed.

Will curl ensure that the cookie file is locked and unlocked before and
after writing to it respectively in order to avoid data inconsistancies and
race conditions.

Thanks,
Arun

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-10-18