"B. Duffee" <[EMAIL PROTECTED]> writes:
> Is there an elegant way to get LWP::Simple to use a proxy?
You set the 'http_proxy' environment variable...
> How can I access the user agent $ua in the head method. It seems I
> should somehow be able to tell it to use _my_ $ua and not its own.
...or you can set up the $ua explicitly like this.
use LWP::Simple qw(head $ua);
$ua->proxy(...);
if (head("http://www.perl.com")) {
....
}
If you do this then you should consider using the full OO-interface
instead.
Regards,
Gisle