cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

setting a new cookie in curl

From: Colleen R. Dick <platypus_at_proaxis.com>
Date: Mon, 05 Dec 2005 13:35:43 -0800

 Hello this time I have a simple question. I want my curl to send along
a brand new cookie that I just made up. It isn't complicated at all but
the application is very picky about where it is. If I were doing it
from inside I would normally have to say
setcookie("custom","value",NULL,"/",".mydomain.com")

We have COOKIE, COOKIEFILE and COOKIEJAR.
The question if I want to use CURLOPT_COOKIE, then the data goes right
in the code (YES??) but what is the format of it!! and if I put it in a
file and use cookiefile, then would that be Netscape format like when
you receive a cookie jar?

I'm sorry to have to ask this but I don't google very many curl examples
all the ones so far that use CURLOPT_COOKIE are either only specifying a
cookie value (and not path or domain) or written by someone who might
be doing it wrong altogether.

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2005-12-05