Re: Issue with HTTP_Request and loading an image from a protected area
| From: | Justin Patrin | Date: | Thu, 10 Nov 2005 02:02:38 +0000 |
| Subject: | Re: Issue with HTTP_Request and loading an image from a protected area | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-21860@lists.php.net to get a copy of this message | ||
On 11/8/05, Dan Rossi <pear@electroteque.org> wrote:
> Hi there, I am using HTTP_Request to collect data from a protected
> area, its displaying a html page with a few images aswell. I had to
> give the full path to the image or else it would try to load it in the
> images directory on the client end. My issue is when i try to load the
> image, even when giving my auth basic credentials i am still getting
> asked for a login to load the image. Is there any way around this ?
>
You always need a "full path" for any URL. HTTP_Request specifically
deals with single requests and would have no context for relative
paths. HTTP_Client is meant to deal with multiple requests, but I
doubt that it deals with relative paths either.
If your auth info isn't working for images it might be a referer
problem. Rry setting the referer header to the page you're
downloading.
--
Justin Patrin