Re: Cookie access with CLI
| From: | Ashley Sheridan | Date: | Sun, 13 Jun 2010 15:04:26 +0000 |
| Subject: | Re: Cookie access with CLI | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-306090@lists.php.net to get a copy of this message | ||
On Sun, 2010-06-13 at 16:58 +0200, 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 don't believe cookies are available in a CLI script, they are a
construct of the browser/web server setup. Running PHP via the command
line is just like any other script over the command line.
Thanks,
Ash
http://www.ashleysheridan.co.uk