cURL / Mailing Lists / curl-library / Single Mail

curl-library

Two cookies with the same name

From: Andrés García <fandom_at_telefonica.net>
Date: Tue, 9 Feb 2010 20:11:07 +0100

Hi,

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

        My browser is sending the JSESSIONID cookie twice:

       JSESSIONID=FDA388F86B7AF0B5063AC5376E1BFC7E
       MYSAPSSO2=(...)x3O!hJ74FYgH
       JSESSIONID=(J2EE205492800)ID0262066450DB01716284852440409336End
       SAPWP_active=1
       DSMKeepAliveStamp=1265636682525

       That's technically correct, because these 2 JSESSIONID have different
       paths, and are from different servers. I still don't know if it's
       ethically correct to send two versions of the same cookie to a web
       server. Anyhow, the SAP Web client does so, so I also have to it :/

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?

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