http_proxy=http://www-proxy.companyDomain:8080/ https_proxy=http://www-proxy.companyDomain:8080/ no_proxy=localhost, 127.0.0.1, .companyDomain #### 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"; } #### $ENV{HTTPS_PROXY} = ''; $ua->proxy(['http', 'https'] => ''); $ua->no_proxy(".companyDomain"); $ua->env_proxy('no_proxy=.companyDomain');