Getting status/response codes in Perl
From: Ali (AyCeeUK_at_hotmail.com)
Date: 02/29/04
- Next message: Tad McClellan: "Re: EOL Anchor under Windows"
- Previous message: Tad McClellan: "Re: regex"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 29 Feb 2004 11:30:52 -0800
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 :o)
- Next message: Tad McClellan: "Re: EOL Anchor under Windows"
- Previous message: Tad McClellan: "Re: regex"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|