Fast URL validation?

Erik Max Francis max at
Tue Mar 11 23:36:06 CET 2003

Thomas Wouters wrote:

> Use httplib and the 'HEAD' command. HEAD is intended for just that.

I use HEAD for most of my Web validation system.  It should be noted
that several Web servers have been configured to reject HEAD requests,
probably out of (unwarranted) paranoia.  The most robust solution would
be a mechanism which uses HEAD and then falls back to a full GET if the
HEAD request gives a suspicious response.

 Erik Max Francis / max at /
 __ San Jose, CA, USA / 37 20 N 121 53 W / &tSftDotIotE
/  \ Experience is the name everyone gives to their mistakes.
\__/ Oscar Wilde Quake III Arena /
 A personal guide to Quake III Arena.

More information about the Python-list mailing list