|
|
| There's more than one way to do things | |
| PerlMonks |
wget - getting status code?by ultranerds (Pilgrim) |
| on May 21, 2009 at 11:02 UTC ( #765421=perlquestion: print w/ replies, xml ) | Need Help?? |
|
ultranerds has asked for the
wisdom of the Perl Monks concerning the following question:
Hi,
I know this isn't really stricly perl related, but seeing as its going in a Perl script (and you guys seem to know most things :P), I thought I'd ask here =) Basically, I'm trying to check if an image exists, before downloading it via wget. For example http://www.test.com/something.gif ...gives a 404 status, while: http://perlmonks.org/images/monkpics/pater_hat_sm.gif ..gives a 200. I know its possible to do this via wget, but I can't for the life of me remember how / find the script I did it in previously. Any suggestions? TIA Andy
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||