$ch = curl_init(); curl_setopt($ch,CURLOPT_URL,
"http://www.baidu.com"
); curl_setopt($ch,CURLOPT_HEADER,
1
); curl_exec($ch); curl_close($ch);
本文转自TBHacker博客园博客,原文链接:http://www.cnblogs.com/jiqing9006/p/7884062.html,如需转载请自行联系原作者