[thelist] HTTP request question: returning just the status code
Lindsay Evans
lindsay at redsquare.com.au
Tue Jul 23 20:00:01 CDT 2002
> For an automatic link checker it would be useful to be able to
> make an HTTP
> request to a web server that returns /just/ the status code (and possibly
> other headers) but not the full document. Is this possible?
Try the HEAD method:
HEAD / HTTP/1.1
Just returns the status code & headers
Note: this may not work with some web servers, I've noticed that IIS4
doesn't do it (although that may be something to do with our setup)
--
Lindsay Evans.
Developer,
Red Square Productions.
[p] 8596.4000
[f] 8596.4001
[w] www.redsquare.com.au
More information about the thelist
mailing list