Does Apache submit headers when a error occurs ?
Trying to display an error message to the browser.

I use mason for the web, so if I have die() statement in my code
mason will display the error to the browser.

If I use an Apache handler -> the error doesn't get displayed to the screen,
not sure why. It seems apache submits headers along with my headers when
an error occurs.
My error message on my browser --->
##
hiHTTP/1.1 200 OK Date: Mon, 03 Mar 2003 04:34:04 GMT Server: Apache/1.3.26 (Win32) mod_perl/1.27_01-dev Connection: close Transfer-Encoding: chunked Content-Type: text/html; charset=iso-8859-1
OK
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, [EMAIL PROTECTED] and inform them of the time the error occurred, and anything you might have done that may have caused the error.


More information about this error may be available in the server error log.



--------------------------------------------------------------------------------

Apache/1.3.26 Server at localhost Port 80
##

The following code that purpose the error -->

package Apache::G;

use CGI::Carp qw/fatalsToBrowser/;
use Apache::Constants qw(:common);

sub handler () {
my $r = shift;
$r->send_http_header('text/html');
$r->('HI');
die("Oh No");

return OK;


}


1;



Reply via email to