Aquilae has asked for the wisdom of the Perl Monks concerning the following question:
I'm using the Image:Magick Read() to grab images off a remote server.
$image = Image::Magick->new; $url = "$Variable1/$Variable2/Filename.jpg"; $image->Read($url);
When I do this to an image within a publicly visible folder, everything works wonderfully: I am able to use Get() to assign the attributes of that remote image to variables.
However, when I try to do this to an image within a folder that is within a protected area requiring htpasswd authentication (such as a Member's Area), the Read($url) fails.
What I am looking for is a means to provide my own username and password to authenticate my script to access these protected files remotely
I have been scouring the internet to find a solution to this. Unfortunately, I am not sure exactly what approach or solution I need to be searching for. Is there a separate package that allows me to authenticate as a user, or something that allows Image::Magick to define user/pass access, or something entirely different altogether.
Any help on this matter would be GREATLY appreciated!
Thanks in advance, perlmonks community.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Trying to allow cgi script to access htpasswd protected files.
by kschwab (Vicar) on Nov 14, 2013 at 03:21 UTC | |
|
Re: Trying to allow cgi script to access htpasswd protected files.
by tangent (Parson) on Nov 14, 2013 at 10:57 UTC | |
|
Re: Trying to allow cgi script to access htpasswd protected files.
by taint (Chaplain) on Nov 14, 2013 at 04:07 UTC | |
by Your Mother (Archbishop) on Nov 14, 2013 at 04:24 UTC | |
|
Re: Trying to allow cgi script to access htpasswd protected files.
by Anonymous Monk on Nov 14, 2013 at 22:40 UTC | |
by Aquilae (Novice) on Nov 14, 2013 at 22:41 UTC | |
|
Re: Trying to allow cgi script to access htpasswd protected files.
by taint (Chaplain) on Nov 14, 2013 at 00:41 UTC |