>  I am a maintainer of a web site.  I'd like to write a script to
> check and see if the external links that I created however long ago
> still exist. Does anyone know of a way that I can connect to a web
> page and just check the status that is returned by the server?  I
> don't need the page, just to check if the status is 404 (page not
> found) or whatever.  
> 
>  Thanks in advance.
> 
> Rob Blader

Use LWP and HEAD requests.

You may either use LWP::Simple and head(), or which would be 
better LWP::UserAgent.

Problem with LWP::Simple::head() is that it doesn't give you any 
info about WHY did it fail. And I think it might be helpfull to be able 
to dinsinguish "page not found" or "server not found" from "can't 
connect at the moment".

Jenda

=========== [EMAIL PROTECTED] == http://Jenda.Krynicky.cz ==========
There is a reason for living. There must be. I've seen it somewhere.
It's just that in the mess on my table ... and in my brain.
I can't find it.
                                        --- me

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to