Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re: checking for valid http links

by hardburn (Abbot)
on Aug 14, 2003 at 19:50 UTC ( #283985=note: print w/replies, xml ) Need Help??

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

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://283985]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2022-12-03 16:53 GMT
Find Nodes?
    Voting Booth?

    No recent polls found