http://www.le.com/ptv/vplay/26312512.html
此代码在普通电脑上得到的代码是Str1,
但是,在模拟浏览器上得到的代码是Str2,我现在要用php来采集代码,以下代码采不到,如何修改,能得到Str2。谢谢了。
    const USER_AGENT="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_3) AppleWebKit/537.75.14 (KHTML, like Gecko) Version/7.0.3 Safari/7046A194A";
    const REFERER = "http://www.le.com";
  //   const REFERER = $_SESSION['HTTP_REFERER'];
    const FORM_ENCODE = "GBK";
    const TO_ENCODE = "UTF-8";
    public static function _cget($url,$convert=false,$timeout=10){
        $ch=curl_init($url);
        curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
        curl_setopt($ch,CURLOPT_TIMEOUT,$timeout);
        curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,$timeout);
        curl_setopt($ch,CURLOPT_USERAGENT,self::USER_AGENT);
        curl_setopt($ch,CURLOPT_REFERER,self::REFERER);       
        curl_setopt($ch,CURLOPT_FOLLOWLOCATION,1); //跟随301跳转
        curl_setopt($ch,CURLOPT_AUTOREFERER,1); //自动设置referer              
        $res=curl_exec($ch);
        curl_close($ch);
        if($convert){
            $res=mb_convert_encoding($res,self::TO_ENCODE,self::FORM_ENCODE);
        }
        return $res;
    }