예제 #1
0
 public static function view($id)
 {
     httpCls::$response = false;
     httpCls::set('host', crawlConf::$host);
     httpCls::set('uri', $id);
     httpCls::set('agent', crawlConf::$browser[0]['agent']);
     httpCls::set('accept', crawlConf::$browser[0]['accept']);
     httpCls::set('cookie', crawlConf::$browser[0]['cookie']);
     $rs = httpCls::send();
     //返回内容
     //httpCls::$response = (httpCls::unchunk2preg(httpCls::$response));
     return httpCls::$response;
 }