本帖最后由 wumachangxi7 于 2014-08-28 22:47:57 编辑

解决方案 »

  1.   

    1、网址没有图片后缀?
    这个因为图片是用php生成的,是php读取了图片内容,然后设置header为图片输出的。所以并不需要图片后缀。
    例如:以下保存为pic.php,运行后可以看到一张100x100的红色图。<?php  
    header('content-type:image/png');  $im = imagecreate(100, 100);
    imagecolorallocatealpha($im, 255, 0, 0, 255);
    imagepng($im);  
    imagedestroy($im);  
    ?>2、curl没有模拟好浏览器?
    估计是判断了来源地址是否与图片地址域名相同,如果不同则返回错误。
    是用于防采集的。