From 327a941657c1ec770aba9b742cafe96dfdc2b741 Mon Sep 17 00:00:00 2001 From: David Mat Date: Mon, 13 Jul 2015 18:28:09 +0200 Subject: [PATCH] Enable proxy support for the HTTP(S) request The 'env_proxy' option automatically loads proxy settings from *_proxy environment variables, if they are defined. This behaviour is consistent with other tools such as curl, wget, etc. --- check_json.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/check_json.pl b/check_json.pl index d799edd..fd05a51 100755 --- a/check_json.pl +++ b/check_json.pl @@ -100,6 +100,7 @@ if ($np->opts->verbose) { (print Dumper ($np))}; ## GET URL my $ua = LWP::UserAgent->new; +$ua->env_proxy; $ua->agent('check_json/0.5'); $ua->default_header('Accept' => 'application/json'); $ua->protocols_allowed( [ 'http', 'https'] );