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

Hi,

Hum, you should use more stuff from CPAN, that take account of all this little stuff as URI parsing, MIME types, request methods, etc...

Also adquiring a book like Perl Best Practices would be a good idea.

Regards,

fmerges at irc.freenode.net

Replies are listed 'Best First'.
Re^4: HTTP Errors and perl
by Eagle_f90 (Acolyte) on Apr 29, 2006 at 20:01 UTC
    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.

      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