- 全部
- 中站区
- 修武县
- 博爱县
- 孟州市
- 山阳区
- 武陟县
- 沁阳市
- 温县
- 解放区
- 马村区
- 招聘求职
- 房屋租售
- 顺风车
- 车辆服务
- 生意转让
- 生活服务
- 商务服务
- 物品买卖
- 产品推广
- 寻人寻物
$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;