| |
|
|
|
cURL Mailing List Monthly Index Single Mail
curl-and-php mailing list Archives
Re: Retrieving cookies
From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Thu, 22 Apr 2004 08:14:38 +0200 (CEST)
On Wed, 21 Apr 2004, Adam Bodnar wrote:
> Now I've read thru all the documentation and all I found was mention of
Simply put:
CURLOPT_COOKIEFILE specifies a file to read cookies from
CURLOPT_COOKIEJAR specifies a file to write cookies to
> (despite the lack of documentation on this on the PHP site).
I would say that the php/curl module is very poorly documented. People often
I personally put a great deal of effort on the libcurl docs to keep the
> I would prefer that I could set a variable to the cookie(s), but from a bug
It is not possible yet, and there is no time frame set for adding this ability
For the curious-minded, here's the latest edit of the suggested API for cookie
> So I messed around with this a bit and with the intention that any cookie
The CURLOPT_COOKIEJAR file is written when the curl handle is closed. If
> 1) Is there no way to get the cookie information that is set by a curl
Not without going through the hassle of storing then in a temp file.
> 2) If 1 is not possible, can you write it to a file? If so, then what
Yes you can use CURLOPT_COOKIEJAR as mentioned above.
> 3) If 1 and 2 aren't possible or it makes sense, should I just parse the
You can parse the headers, sure.
--
Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
Dedicated custom curl help for hire: http://haxx.se/curl.html
Received on 2004-04-22
These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info