On Mon, 2006-08-14 at 20:13 -0500, Mark Stosberg wrote:
> I definitely see a different result. I get just a blank page with this test:
>
> #!/usr/bin/perl
>
> use CGI;
> my $q = new CGI;
>
> print $q->header( -status => '404 Not Found' );
It may be a legitimate 404 even if it a blank page. Apache normally
send some HTML along with the 404 status, which you haven't done here,
hence the different appearance.
> In my experience it is "too late" to return a true 404 response in CGI,
> but is possible in mod_perl, I think.
It should work with either. The mod_cgi stuff in Apache is supposed to
parse the headers from your output to determine what status to send.
See http://mail-archives.apache.org/mod_mbox/perl-modperl/200403.mbox/%
suppressed for an explanation from Geoff
Young. I don't know how non-Apache servers handle this.
- Perrin
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/suppressed/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.