$url='http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
$urls = array(
$url,
);
$api = 'http://data.zz.baidu.com/urls?appid=1562258364831914&token=na3Za0W0h9K6hSoW&type=realtime';
$ch = curl_init();
$options = array(
CURLOPT_URL => $api,
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POSTFIELDS => implode("\n", $urls),
CURLOPT_HTTPHEADER => array('Content-Type: text/plain'),
);
curl_setopt_array($ch, $options);
$result = curl_exec($ch);
?>