use HTTP::Request::Common; my $virtual_machines = GET( 'https://api.vps.net/virtual_machines.api10json', Accept => 'application/json', Content_Type => 'application/json', ); # perform request, passing the credentials either in the URL or setting up LWP::UserAgent ... print $response->as_string;