RE: [PHP] Curl and cookies
| From: | Ray Hauge | Date: | Fri, 15 Dec 2006 14:16:35 +0000 |
| Subject: | RE: [PHP] Curl and cookies | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-245863@lists.php.net to get a copy of this message | ||
I don't know if you can do what you are asking for, but you could get
around it a little bit. In the curl request you specify the cookie file
and the cookie jar file. Once you have made your requests, you could
read them with file_get_contents() and put that into a $_SESSION
variable. You could then put that information back into the cookie
file(s) with file_put_contents() [PHP5]
--
Ray Hauge
Application Development Lead
American Student Loan Services
www.americanstudentloan.com
-----Original Message-----
From: Fernando M. M. [mailto:stormrider@tifacil.com.br]
Sent: Friday, December 15, 2006 8:07 AM
To: php-general@lists.php.net
Subject: [PHP] Curl and cookies
Hello,
I have just started using curl and i have some question about
cookies.
The website i'm logging in controls everything using cookies (from
login to the actions inside it).
Is there a way to store the cookie values
into a php session variable ($_SESSION['cookie'])?
How do i make curl receive
the cookie and store in this variable?
How do i make curl send it?
Thanks,
Fernando.
--
Blog:
http://blog.forumdebian.com.br/fernando
Contato:
http://www.forumdebian.com.br/fernando/contato.php