cURL / Mailing Lists / curl-users / Single Mail

curl-users

Curl sends cookies in multiple headers

From: Arunkumar Manickam <arun.ccjl_at_gmail.com>
Date: Thu, 14 Oct 2010 12:34:04 +0530

Hi,

If there are multiple cookies to be sent to a server, curl sends them in
separate headers on for each cookie.

Is there a way I can force CURL to send the cookies rolled out into one
header.

Currently the request is like this:
GET / HTTP/1.1
Host:abc.com
Cookie:cookie1=val1
Cookie:cookie2=val2

I want it to be like this:
GET / HTTP/1.1
Host:abc.com
Cookie:cookie1=val1;cookie2=val2

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-14