1014 |
$ua->protocols_allowed ([qw/http/]); |
$ua->protocols_allowed ([qw/http/]); |
1015 |
$ua->max_size (1000_000); |
$ua->max_size (1000_000); |
1016 |
my $req = HTTP::Request->new (GET => $request_uri); |
my $req = HTTP::Request->new (GET => $request_uri); |
1017 |
|
$req->header ('Accept-Encoding' => 'identity, *; q=0'); |
1018 |
my $res = $ua->request ($req); |
my $res = $ua->request ($req); |
1019 |
## TODO: 401 sets |is_success| true. |
## TODO: 401 sets |is_success| true. |
1020 |
if ($res->is_success or $http->get_parameter ('error-page')) { |
if ($res->is_success or $http->get_parameter ('error-page')) { |