cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Two cookies with the same name

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 9 Feb 2010 22:29:38 +0100 (CET)

On Tue, 9 Feb 2010, Andrés García wrote:

> A user of TclCurl has emailed a problem he's got trying to emulate the SAP
> web client. In his own words:

...

> As far as I can see, libcurl will overwrite the first one given to it with
> the second.
>
> Is there a way to send both?

libcurl will send both if they are set for different paths or for different
domains. We even have a test case that verifies that it works!

However, the sort order of outgoing cookies is a real mess and libcurl will
not use the exact same order as most browsers even though 7.20.0 will at least
be closer to them for the most of the time. See my recent rant on this topic:

         http://daniel.haxx.se/blog/2010/01/20/cookie-order/

-- 
  / daniel.haxx.se

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-02-09