App-Slaughter
view release on metacpan or search on metacpan
lib/Slaughter/Transport/http.pm view on Meta::CPAN
}
#
# Use a proxy, if we should.
#
$ua->env_proxy();
#
# Make a request, do it in this fashion so we can use Basic-Auth if we need to.
#
my $req = HTTP::Request->new( GET => $url );
if ( $self->{ 'username' } && $self->{ 'password' } )
{
$req->authorization_basic( $self->{ 'username' },
$self->{ 'password' } );
}
#
# Send the request
#
my $response = $ua->request($req);
( run in 0.394 second using v1.01-cache-2.11-cpan-de7293f3b23 )