HTTP, HTML, and HEAD requests

The other day I was working on a script and I wanted to get the titles for a bunch of web pages I had links to. I coded up something that downloaded each page, pulled out the title, and cached it (so that there would be no more than 1 request per URL).

Still, a lot of these were weblogs or other dynamically generated pages, so it was still a time & resource intensive operation.

It occured to me that it would be cool if there was a standard way to ask a webserver just to send you the HEAD element (and content of course) for a page. You could extract the title, meta keywords, and link elements, etc without having to fetch the entire page’s contents.

Thoughts?

R.E.M. Says:

About this Entry

This page contains a single entry by Steve published on March 14, 2003 1:01 PM.

The Full Effect was the previous entry in this blog.

Speaks Her Mind is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

OpenID accepted here Learn more about OpenID