|P is for Practical|
wget - getting status code?by ultranerds (Pilgrim)
|on May 21, 2009 at 11:02 UTC||Need Help??|
ultranerds has asked for the
wisdom of the Perl Monks concerning the following question:
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
...gives a 404 status, while:
..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.