cURL / Mailing Lists / curl-library / Single Mail


Re: Multiple Set-Cookie lines

From: Daniel Stenberg <>
Date: Mon, 19 Mar 2001 09:30:45 +0100 (MET)

On Sun, 18 Mar 2001, Christian Robottom Reis wrote:

> Though we can of course specify cookies separated by semi-colons, is
> there a way to get curl to set multiple Set-Cookie lines? I believe it
> can be done through header manipulation alone, but I wondered if there's
> a more straightforward way.
> My test site here doesn't seem to like the ;s.

No, there's no other way to do it. Remember to put a space after each ; as
some servers require such. I.e:

  "cookie1=value1; cookie2=value2;"

  Daniel Stenberg -- curl project maintainer --
Curl-library mailing list
Received on 2001-03-19