Henry Hartley wrote:
>> >> There is something preventing LWP from seeing your http_proxy
>> >> environment variable.  The error message doesn't even come from
>> >> PPM itself, it is LWP::UserAgent::proxy() that is complaining
>> >> about "10.1." not being a valid proxy address.
>> >>
>> >> You may want to write a small test program using LWP::simple to
>> >> download a file from the web and see if you run into the same
>> >> issue.
>> 
>> I see the code you point to (and even found that by searching for
>> the error message I was getting). I'll do what you suggest
>> although I haven't used LWP::UserAgent recently and I've never
>> dealt with LWP::UserAgent::proxy(), so I'll have to brush up on
>> that.

This four line script will generate the error for me.

#!/usr/bin/perl
use LWP::UserAgent;
$ua = LWP::UserAgent->new();
$ua->env_proxy;

C:\temp>lwp.pl
Proxy must be specified as absolute URI; '10.1.' is not at C:\temp\lwp.pl line 4

The error message is exactly the same (i.e. the 10.1. doesn't change) no matter 
what I set http_proxy to or if it is not set at all. Does capitalization of the 
http_proxy matter and if so, what's proper? Otherwise, I'm lost.

-- 
Henry

_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to