JavaScript Editor Ajax software     Free javascripts 



Main Page

HTTP Status Codes
Each time a user agent requests a URL from a web site, the server replies with a set of HTTP headers;
the requested content follows after them. Most users never see this part of the communication, how-
ever, because web browsers do not normally display them.
If you’ve never seen how these headers look, it’s time to get your feet wet. The easiest way to get started
is to use a web-based tool that does all of the work for you. One such tool is located at
http://www
.seoegghead.com/tools/view-http-headers.php
.
Figure 4-1 shows the results of using this tool for
http://www.cristiandarie.ro
. The status code is
highlighted.
A more convenient way to view these headers is by using a plugin for your browser. One plugin you can
use with Firefox is
LiveHTTPHeaders
(
http://livehttpheaders.mozdev.org/
). For Internet Explorer
you can use
ieHTTPHeaders
(
http://www.blunck.se/iehttpheaders/iehttpheaders.html
).
Figure 4-2 shows
LiveHTTPHeaders
in action.
The part of the HTTP headers you’re predominantly interested in for the purpose of this chapter is the
line containing the
status code
of the request, as indicated in the figure. The most common status code is
200
, which specifies the request was processed by your web server successfully without any surprises,
and that the content the user requested follows.
Figure 4-1
78
Chapter 4: Content Relocation and HTTP Status Codes
c04.qxd:c04 10:40 78


JavaScript Editor Ajax software     Free javascripts 
R7