$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'http://example.com/');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 5.1; rv:40.0) Gecko/20100101 Firefox/40.0'); //添加user_agent信息
$data = curl_exec($ch);
curl_close($ch);
以上是一些可能的解决方法,具体情况仍需根据实际情况进行分析和解决。