Beefy Boxes and Bandwidth Generously Provided by pair Networks Cowboy Neal with Hat
Welcome to the Monastery
 
PerlMonks  

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

by IndyZ (Friar)
on Oct 20, 2001 at 03:39 UTC ( [id://120203]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


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
  • Comment on Re: Re: LWP to download images, how to let LWP decide, wether it is an image or not?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://120203]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.