A
Ali
Hi,
I've created a site and on one page I need to print certain
information out to a log file. I've managed to get all the data that
is required except a 'HTTP response code'. I've searched through
several books and websites and all I've come up with is that they are
also called status codes and I've found how to create a page that is
displayed when a certain status code is found but I can't find out how
to log the status of the page that was loaded.
Does anyone know how to do this and am I right in saying that for the
page to have loaded correctly the code must be 200?
I thought it might be stored as an environment variable like when
setting and retrieving cookies but I can't find any environment
variables associated with status codes.
Can anyone help?
Thanks very much,
Ali )
I've created a site and on one page I need to print certain
information out to a log file. I've managed to get all the data that
is required except a 'HTTP response code'. I've searched through
several books and websites and all I've come up with is that they are
also called status codes and I've found how to create a page that is
displayed when a certain status code is found but I can't find out how
to log the status of the page that was loaded.
Does anyone know how to do this and am I right in saying that for the
page to have loaded correctly the code must be 200?
I thought it might be stored as an environment variable like when
setting and retrieving cookies but I can't find any environment
variables associated with status codes.
Can anyone help?
Thanks very much,
Ali )