cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: CURLOPT_COOKIE: How to set multiple cookies?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 30 Apr 2002 08:35:09 +0200 (MET DST)

On Mon, 29 Apr 2002, Dan Wood wrote:

> This is something unclear in the documentation -- if I have several cookies
> that I want a client to send to a server request, what's the appropriate
> mechanism -- should I use the CURLOPT_COOKIE option multiple times, or
> should I use CURLOPT_COOKIE once, with all of the cookies concatted
> together like "name1=value1; name2=value2; name3=value3;" ?

The latter. Using the option multiple times will only replace the former
values.

Thus, you need to concat the cookies yourself.

I'll try to clarify this in the docs.

-- 
    Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/
Received on 2002-04-30