Does your webserver give HEAD?

In the process of constructing a crawler that finds and checks PDF documents on a website I discovered a lot of sites that don’t return information for HEAD requests. A HEAD request should return the same set of HTTP headers as a normal GET request only without the actual payload.

The typical response seem to be status 500 (internal server error) on a lot of IIS sites. So, now is a good time to check your own sites to see what you get back from a:

curl --head http://www.mysite.com

Comments

  1. Myles Braithwaite says at 2008-04-17 21:04:

    I wonder if that their idea of a security feature?

  2. MikeBlake says at 2008-04-23 10:04:

    Strange. I’d swear I’ve heard before that IIS blows. I wonder what went wrong here?

Leave a comment

OpenID

Anonymous

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>