dian has asked for the wisdom of the Perl Monks concerning the following question:
If I am testing towards HTTP it works fine.http_proxy=http://www-proxy.companyDomain:8080/ https_proxy=http://www-proxy.companyDomain:8080/ no_proxy=localhost, 127.0.0.1, .companyDomain
I mentioned I have tried to use a number of ways to be able to solve this(one at a time), for example:use strict; use warnings; use LWP::UserAgent; my $address = "https://companyDomain/subpage"; # Start useragent and get the webpage my $ua = new LWP::UserAgent; my $head_request = new HTTP::Request GET => $address; my $head_response = $ua->request( $head_request ); # Evaluate result if ($head_response->is_success){ print " is valid\n"; } else { print ": is invalid\n"; }
Anyone who has some thoughts/ideas/suggestions? Solution or workaround? If not with LWP, so Perhaps a solution with another module.$ENV{HTTPS_PROXY} = ''; $ua->proxy(['http', 'https'] => ''); $ua->no_proxy(".companyDomain"); $ua->env_proxy('no_proxy=.companyDomain');
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: LWP https problem with no_proxy
by daxim (Curate) on Mar 11, 2013 at 12:13 UTC | |
|
Re: LWP https problem with no_proxy
by dian (Initiate) on Mar 11, 2013 at 13:35 UTC |