curl_setopt($ch, CURLOPT_URL, 'http://www.baidu.com/');//请求url地址curl_setopt($ch, CURLOPT_HEADER, 0);//不输出头部信息curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);//文件流形式输出curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);//不验证证书 '错误编号:'.curl_errno($ch).'<br>错误信息:'…