header("Content-type:text/html;charset=utf-8");
$ch=curl_init();
$url = '//anturl.com';
curl_setopt($ch,CURLOPT_URL,"//anturl.com/index.php?m=Api&a=safeurlapi&appkey=dwzse&appsecret=123456");
curl_setopt($ch,CURLOPT_POST,true);
curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);
$data=array('url'=>$url);
curl_setopt($ch,CURLOPT_POSTFIELDS,$data);
$strRes=curl_exec($ch);
curl_close($ch);
$arrResponse=json_decode($strRes,true);
if($arrResponse['status']==0)
{
	echo '检测网址:'.$url.'
检测结果:'.$url.'为安全网址!'; } else { echo '检测网址:'.$url.'
检测结果:'.$arrResponse['err_msg']; } ?>

接口演示程序://anturl.com/?m=Public&a=safecx