Getting status/response codes in Perl

From: Ali (AyCeeUK_at_hotmail.com)
Date: 02/29/04


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)



Relevant Pages

  • Hang on "Loading your personal settings"
    ... except suddenly it wont boot past the wallpaper and screen ... saying "PLEASE WAIT - Windows is loading your personal ... file from registry replaced by a log file and 'it was ...
    (microsoft.public.windowsxp.general)
  • Re: Brasero Couldnt Close disc
    ... but it got an error at the end saying it couldn't close the ... disc. ...  I provided the link to the end of the log file. ... Modify settings or unsubscribe at: ...
    (Ubuntu)
  • Re: Where can I find a log file for this ... ?
    ... > one FreeBSD machine at work froze, saying something about some ... > Is there some kind of log file where I could see this message ...
    (freebsd-questions)
  • Re: IIS - SMTP - CDONTS
    ... Are you saying there is no indication of your SMTP server doing ... Here is an extract of some typical entries in the log file: ...
    (microsoft.public.inetserver.iis)
  • Re: [Suggestions] Parental Control Software - hope I am not too OT
    ... talking about such matters at school. ... screen certain websites in a similar manner. ... sure you keep a daily backup of the log file, to make sure it hasn't been ... Spying on the kids won't help; ...
    (microsoft.public.security.virus)