如题!

解决方案 »

  1.   

    CURLOPT_NOBODY TRUE to exclude the body from the output.  
      

  2.   

    可是我用了这个参数后什么都没有诶:
    curl_setopt($content,CURLOPT_URL,$url);

    curl_setopt($content,CURLOPT_HEADER,false);
    curl_setopt($content, CURLOPT_NOBODY,true); 
    curl_setopt($content,CURLOPT_TIMEOUT,3);
    curl_setopt($content,CURLOPT_FOLLOWLOCATION,true);
        curl_setopt($content,CURLOPT_MAXREDIRS,20);
    curl_setopt($content,CURLOPT_RETURNTRANSFER,true);
    curl_setopt($content,CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.0)");
    $orders=@curl_exec($content);
    @curl_close($content);看看对不对····
      

  3.   

    curl_setopt($content,CURLOPT_HEADER,false); //不返回头
    curl_setopt($content, CURLOPT_NOBODY,true); //不返回身体那么你还要什么呢?
      

  4.   

    手册上说 
    CURLOPT_NOBODY TRUE to exclude the body from the output
    google说 to exclude the body from the output 从输出中排除身体
    并没有说不取得全部内容而
    get_headers  返回全部头信息
    get_meta_tags 从一个文件中提取所有的 meta 标签 content 属性自己掂量着办
      

  5.   

    o,My mistake,可我还要采集title怎么办呢?