Subject: | LWP::Simple head does not use proxy |
LWP::Simple head() method should observe ua->proxy settings, but does
not appear to do so.
Enough servers are broken with HEAD and I've got a workaround so I'm
rating this only NORMAL.
CPAN::Mini uses LWP::Simple, and uses the head($remote) method to test
connectivity for early exit. Alas, the head method does not appear to
(correctly) use the $ua->proxy settings. Commenting out the head-or-
croak check in CPAN/Mini.pm makes the minicpan script work from behind
the firewall.
I'll post the work-around on use.perl.org ...
libwww-perl-5.800 LWP::Simple 1.41 LWP::UserAgent 2.32
Perl 5.8.5 locally built from sources
osname=aix, osvers=5.2.0.0, archname=aix
config_args='-d'
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef
usemultiplicity=undef
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
OS version unchanged since Perl config -- AIX 5.2.
Thanks for the great tools!
-- Bill
aka n1vux on use.perl.org