in reply to Trying to allow cgi script to access htpasswd protected files.

Try this type of url maybe?
http://username:password@site.com/rest/of/url
If that doesn't work, LWP can fetch basic auth pages into a string, then you can do:
$image->Read(blob=>$string);