php Curl failed when requesting Baidu's specific search page
等不到时光
等不到时光 2020-04-09 17:18:11
0
0
920
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://www.baidu.com/s?ie=utf-8&wd=lkj");

curl_setopt($ch,CURLOPT_SSL_VERIFYPEER,0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$output = curl_exec($ch);
echo $output;
curl_close($ch);
?>

Please help me find out where the problem is

等不到时光
等不到时光

reply all(0)
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!