curl-library
HTTP cookies set by client and server
Date: Mon, 20 Dec 2010 15:06:23 +0530
Hi,
My application uses both CURLOPT_COOKIE and CURLOPT_COOKIEJAR file.
If server sets a cookie named say, "SERVERCOOKIE" , curl manages this cookie
automatically. If the application also adds a cookie of the same name
"SERVERCOOKIE" , then CURL is sending two cookies one managed by CURL ( set
by server ) and one set by the application instead of sending only one.
>>>HTTP header line
Cookie:SERVERCOOKIE=managedbyCurl; SERVERCOOKIE=setbyApplication
>>>
Is there an option in CURL to make one of them take precedence, preferably
the one set by the application, and send just one cookie instead of two.
Thanks,
Arun
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-12-20