http_proxy

Boyd Duffee <[email protected]> Wed, 05 Oct 2011 19:50:39 +0100
Newsgroups gmane.comp.lang.perl.modules.lwp
Message-ID <[email protected]>
Hi there,

I'm writing a module SRU::Client and like a good boy, I wrote a test 
script (using Test::More).  I couldn't figure out why the test script 
would run on one machine, but not on another, until I found that the 
machine it wouldn't run on had the HTTP_PROXY set.  When I unset that 
variable in the shell, the script works, but I cannot for the life of me 
unset HTTP_PROXY in the script itself.

Things that don't work:
undef $ENV{HTTP_PROXY}
$ua->no_proxy('www.google.co.uk');
$ua->proxy('http', '');

And it's not the test script because I tried these tricks out on the 
command line with perl -e.

I am stumped and the best thing I can do right now is to explain it in 
the documentation.  Any suggestions?

tia,
--
Boyd Duffee				Keele University
Systems Guy				(01782) 734225	
   "Ё моё!" - Pavel Andreievich Chekov