| |
|
|
|
cURL Mailing List Monthly Index Single Mail
curl-and-php mailing list Archives
RE: Retrieving cookies
From: <vah330_at_excite.com>
Date: Sat, 24 Apr 2004 16:41:00 -0400 (EDT)
Adam> I need to retrieve a cookie that is set by
Mind if is why?
Maybe someone can suggest an alternate course of action if you can't do it directly using cURL.
Adam> So I messed around with this a bit and with
Does your PHP script have write permissions for that directory and file?
Have you tried writing to a file located relative to the script?
Dan O.
--- On Thu 04/22, Adam Bodnar wrote:
I'm very new to Curl, but figuring it out pretty quickly.
A problem I'm running into is that I need to retrieve a cookie that is set by the page after I do a Curl POST submit to it.
Now I've read thru all the documentation and all I found was mention of CURLOPT_COOKIEFILE and then some examples with CURLOPT_COOKIEJAR. Now the former seems to be entirely related to sending a file with the cookie information you want to pass to a Curl session and the latter seems to be something where you can store the cookies(despite the lack of documentation on this on the PHP site).
I would prefer that I could set a variable to the cookie(s), but from a bug I read on the PHP site, it seems this is not possible yet.
So I messed around with this a bit and with the intention that any
curl_setopt($ch2, CURLOPT_COOKIEJAR, "/tmp/my_cookies.txt");
It seems the only way I can grab the cookies that are set by the page
So in all,
1) Is there no way to get the cookie information that is set by a curl session into a variable?
Thanks for the help,
Adam Bodnar
_______________________________________________
These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info