- 全部
- 大关县
- 威信县
- 巧家县
- 彝良县
- 昭阳区
- 水富县
- 永善县
- 盐津县
- 绥江县
- 镇雄县
- 鲁甸县
- 全部
- 餐饮美食
- 休闲娱乐
- 酒店旅游
- 购物天地
- 生活服务
- 汽车服务
- 母婴专区
- 婚庆摄影
- 教育培训
- 家具建材
- 房产相关
- 商务服务
- 农林牧渔
- 医疗诊所
$urls = array(
'http://www.example.com/1.html',
'http://www.example.com/2.html',
);
$api = 'http://data.zz.baidu.com/urls?site=https://www.bmxxq.com&token=H5PT2nEd6Vhs9P4c';
$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;