15289765709
- 网站公告
- 海口专业绿化树木修剪养护,一次合作终身朋友
分享本站:
- 15289765709
- 传真:
- 邮件:364374063@qq.com
- 客服:
地址:海南省海口市美兰区二东路
手机:13637597095
邮箱:364374063@qq.com
网站二维码
$urls = array(
'http://www.example.com/1.html',
'http://www.example.com/2.html',
);
$api = 'http://data.zz.baidu.com/urls?site=www.hainanlh.com&token=DqAHpAYop2CwcbgJ';
$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);
echo $result;