Re: Issue with HTTP_Request and loading an image from a protected area
| From: | Dan Rossi | Date: | Thu, 10 Nov 2005 02:25:56 +0000 |
| Subject: | Re: Issue with HTTP_Request and loading an image from a protected area | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-21861@lists.php.net to get a copy of this message | ||
thanks ill give the referer a try, however i got around it for now by leaving the images unprotected
<Files index.php>
Require valid-user
</Files>
On 10/11/2005, at 1:02 PM, Justin Patrin wrote:
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