http://qs1969.pair.com?node_id=120203


in reply to Re: LWP to download images, how to let LWP decide, wether it is an image or not?
in thread LWP to download images, how to let LWP decide, wether it is an image or not?

That's a good effort, but it will not work in all cases. Many sites (photoisland, yahoo photos) use a CGI to pull images out of a database. Although these files do not have the correct extension, they still return a valid image MIME type. Plus, I could fool your pattern like this: http://www.perlmonks.org/?jpg. That probably wouldn't do anything bad, other than a broken image, but still.

--
IndyZ