cURL / Mailing Lists / curl-users / Single Mail


Re: -b

From: Daniel Stenberg <>
Date: Mon, 2 Feb 2004 16:26:32 +0100 (CET)

On Mon, 2 Feb 2004, Mato Mira, Fernando wrote:

> I've read the man page and I don't understand what should be the format
> for sending multiple cookies in the command line. Do you have an example?

When you specify a set custom cookie to send, curl will simply pass that line
along to the server prepended with "Cookie:". Thus, to send two cookies named
'name' and 'shoesize' using the values 'Daniel' and '9', you'd do it like

  curl -b "name=Daniel; shoesize=9;" [URL]

    Daniel Stenberg -- --
   [[ Do not send mails to this email address. They won't reach me. ]]
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
Received on 2004-02-02