| |
|
|
|
cURL Mailing List Monthly Index Single Mail
curl-and-php mailing list Archives
Re: setting a new cookie in curl
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 5 Dec 2005 23:21:14 +0100 (CET)
On Mon, 5 Dec 2005, Colleen R. Dick wrote:
> Hello this time I have a simple question. I want my curl to send along a
> setcookie("custom","value",NULL,"/",".mydomain.com")
I don't think PHP/CURL offers any interface to the COOKIELIST option that
> The question if I want to use CURLOPT_COOKIE, then the data goes right
The data goes right into the request header, yes.
> but what is the format of it!!
name=contents
or if you want to send two cookies:
name1=contents1; name2=contents2
> if I put it in a file and use cookiefile, then would that be Netscape format
Yes. cookiefile understands both netscape format and plain HTTP header format.
> I'm sorry to have to ask this but I don't google very many curl examples all
Outgoing cookies have only name and value; no path and no domain.
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.html _______________________________________________ http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-phpReceived on 2005-12-05 These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info