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


in reply to checking for valid http links

The HTTP/1.1 specification requires all web servers to implement two methods: GET and HEAD. If you've done much CGI programming, you already know what GET does. HEAD gives you all the headers that would be sent in a GET, but without sending the actual data. At least, it will as long as your web server was coded properly (I've seen weird cases where a server does send the data in a HEAD, but I don't remember how it happend).

So, you just need to change from a GET request to a HEAD.

----
I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
-- Schemer

Note: All code is untested, unless otherwise stated