in reply to Re^3: HTTP Errors and perl
in thread HTTP Errors and perl

Thank you for your suggestion on cpan but I have searched there and not found the answer to my question there. The eniter script works as I need it to with the exeption of passing a 404 error when the file does not exist.

Replies are listed 'Best First'.
Re^5: HTTP Errors and perl
by fmerges (Chaplain) on Apr 30, 2006 at 18:48 UTC

    Hi,

    Normally it's because you have sended something prior. Take a look to a nice extension for Firefox called LiveHeaders to see what you getting from that CGI.

    For example on module:://HTML::Mason you have a method to flush the output buffer, and another to send an HTML code

    $m->clear; $m->abort(404);
    or,
    $m->clear_and_abort(404);

    Regards,

    fmerges at irc.freenode.net