mirror of
https://github.com/c-kr/check_json.git
synced 2024-11-23 10:53:47 +01:00
Merge pull request #1 from davidmat/davidmat-proxy-support
Enable proxy support for the HTTP(S) request
This commit is contained in:
commit
6a395d0ea8
@ -100,6 +100,7 @@ if ($np->opts->verbose) { (print Dumper ($np))};
|
|||||||
## GET URL
|
## GET URL
|
||||||
my $ua = LWP::UserAgent->new;
|
my $ua = LWP::UserAgent->new;
|
||||||
|
|
||||||
|
$ua->env_proxy;
|
||||||
$ua->agent('check_json/0.5');
|
$ua->agent('check_json/0.5');
|
||||||
$ua->default_header('Accept' => 'application/json');
|
$ua->default_header('Accept' => 'application/json');
|
||||||
$ua->protocols_allowed( [ 'http', 'https'] );
|
$ua->protocols_allowed( [ 'http', 'https'] );
|
||||||
|
Loading…
Reference in New Issue
Block a user