in reply to REST call from CGI do not work

$client->responseContent() is not returning JSON, so calling from_json on it results in an error.

$client->responseContent() appears to be returning an error message. Try printing out that error message and reading it. It should give you a clue what to do next.

perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'

Replies are listed 'Best First'.
Re^2: REST call from CGI do not work
by Sterh (Novice) on May 25, 2012 at 00:09 UTC

    You are right here is the print out of it

    Can't connect to 10.31.2.95:443 (certificate verify failed) LWP::Proto +col::https::Socket: SSL connect attempt failed with unknown error err +or:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate veri +fy failed at /usr/local/lib/perl5/site_perl/5.14.2/LWP/Protocol/http. +pm line 51.