$data = array(‘params’=>$params,”action”=>$action); // fire url
$data_json = json_encode($data,JSON_FORCE_OBJECT);
$url = $fireArr[0].”/cgi-bin/json_xfer”;
$ch = curl_init();
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
curl_setopt($ch, CURLOPT_USERPWD, $logdetail);
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(‘Content-Type: application/json’));
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS,$data_json);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);

$dmpresponse = $resp = curl_exec($ch);
curl_close($ch);

i am using above the code but it showing

But i am getting ” Method Not Allowed”