Re: Cookie access with CLI
| From: | Shawn McKenzie | Date: | Sun, 13 Jun 2010 16:34:33 +0000 |
| Subject: | Re: Cookie access with CLI | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-306095@lists.php.net to get a copy of this message | ||
On 06/13/2010 09:58 AM, David Česal wrote:
> Hello,
>
> I'm trying to access (from CLI) some website, where login is required.
> Please, is it possible to set/save some cookies first (login session
> information) and then access the website as logged user? All through CLI.
>
>
>
> Thank you very much for any information.
>
>
>
> David Cesal
>
>
I'm almost positive you can do this with cURL and it should be fairly
simple. Check it out.
http://php.net/manual/en/book.curl.php
--
Thanks!
-Shawn
http://www.spidean.com