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 a value in the URI that
> does reference a database record. I can (and have) trapped such an
> event and thus I can display the appropriate "Not found" warning by
> using a CGI.pm redirect to my 404 page, but using redirect obviously
> updates the URL (as displayed on the browsers address line) to that of
> the 404 page, whereas I want the URL to continue to display the users
> request.
>
> Can I do this?
See:
http://archive.covalent.net/modperl/2001/04/0088.xml
Cheers,
--
Helios de Creisquer <[EMAIL PROTECTED]>
http://www.tuxfamily.org/ <[EMAIL PROTECTED]>
http://www.vhffs.org/ +33 (0)6 70 71 20 29 <[EMAIL PROTECTED]>
http://www.gnu.org/ <[EMAIL PROTECTED]>
GPG(1024D/96EB1C44): FB11 8B80 4D86 D9C2 DE0C 11D7 2FA8 A5CC 96EB 1C44