Apache::ASP Powered by ModPerl & Apache Powered by Apache::ASP
Demo ASP: source.asp 2024-05-24

Source of file error_document.htm:

 if(! $ENV{MOD_PERL}) {
   print "<b>ERROR:</b> \$Response->ErrorDocument() is not implemented in CGI mode\n";

my $file = DemoASP->new->{file};
my $padding = ' ' x 1000; # IE Error page busting ( 512 bytes needed )
$Response->ErrorDocument('404', <<ERROR);
<html><head><title>Custom 404 Error</title></head>
This is a custom response for the <b>404</b> error,
that this script just created, utilizing the 
\$Response->ErrorDocument(\$error_code, \$uri) method.
<a href="source.asp?file=$file">
view this file's source
This should not be printed

view this file's source