On Thu, May 16, 2002 at 11:40:49AM +0100, Jonathan M. Hollin wrote:
> Hi JAPHs,
>
> Is it possible to force a 404-error from within a mod_perl CGI?
>
> I am working on my CMS and I want to generate a 404 if the user hacks
> the URI in a certain way: i.e, if the use passes
>See Chapter 4, "Handling Errors", in the Eagle book.
Great Thomas, I have a working handler now. Thanks very much to Thomas
and everyone else who replied with suggestions.
Jonathan M. Hollin - WYPUG Co-ordinator
West Yorkshire Perl User Group
http://wypug.pm.org/
http://wypug.digital-word.co
Hi!
On Thu, May 16, 2002 at 11:40:49AM +0100, Jonathan M. Hollin wrote:
> Is it possible to force a 404-error from within a mod_perl CGI?
What about returning NOT_FOUND from your handler and let an ErrorDocument
print out the warning?
See Chapter 4, "Handling Errors", in t
On Thu, 16 May 2002, Jonathan M. Hollin wrote:
> Is it possible to force a 404-error from within a mod_perl CGI?
I'm not sure what you mean by a "mod_perl CGI." Anyway, basically you
need to return the "404" error code in the HTTP response and provide some
helpf
Hi JAPHs,
Is it possible to force a 404-error from within a mod_perl CGI?
I am working on my CMS and I want to generate a 404 if the user hacks
the URI in a certain way: i.e, if the use passes a value in the URI that
does reference a database record. I can (and have) trapped such an
event and