#!/usr/bin/perl use REST::Client; #$ENV{PERL_LWP_SSL_VERIFY_HOSTNAME}=0; #Intentionally commented this out as i was trying multiple opions to turn off host verification MAIN: { my $client = REST::Client->new( timeout => 30, ssl_opts => { verify_hostname => 0 },); $client->GET(); #assigning the API response to a variable my $response = $client->responseContent(); print $response."\n"; }