Re: PEAR::HTTP_REQUEST
| From: | Justin Patrin | Date: | Tue, 25 Jan 2005 16:12:26 +0000 |
| Subject: | Re: PEAR::HTTP_REQUEST | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-17149@lists.php.net to get a copy of this message | ||
On Tue, 25 Jan 2005 10:50:30 +0100, Lassiege Hugo
<hlassiege@sopragroup.com> wrote:
> Hi,
> This is the first time I use this mailing list so I hope that I didn't make a mistake.
>
> I try to made test with HTTP_REQUEST package yesterday. I am connecting to my own website and
> then I verify that I am correctly logged in. If it's correct, I try to print a page.
> I use to following code :
>
[snip]
> But it doesn't keep session variable and the second request (HTTP_REQUEST_METHOD_GET) give
> me the loggin screen because the authentification failed.
>
> Is it possible to keep session variable and to navigate into my website like this ?
>
HTTP_Request only makes *single* requests, it's not set up to keep
state information (aka cookies). HTTP_Client, which uses HTTP_Request,
will do this.
--
Justin Patrin