Hello ,
The following code snippet throws the following error :
my $headers = {Content-type => 'application/json' ,Accept => 'application/json', Authorization => 'Basic ' . encode_base64($username . ':' . $password)};
my $client = REST::Client->new();
$client->setHost('http://Cru_Server:8060/cru');
$client->GET('/rest-service/reviews-v1/filter/allOpenReviews',$headers);
#print $client->responseContent();
my $response = from_json($client->responseContent());
print $response;
malformed JSON string, neither array, object, number, string or atom, at charact
er offset 1 (before "<!DOCTYPE html>\n<ht...") at Crucible_Interaction.pl line
Any suggestion's?
Thanks ,
Mohan