>
> I've got an Embperl page where I'd like to have Embperl stop
> processing and return an Apache FORBIDDEN or DECLINED or some other
> arbitrary handler return code if particular conditions are true.
> Apache::exit does the stop but not the return code. I can think of a
> few kludges, but was wondering if there's a nice elegant mechanism to
> do this that I'm missing?
>
There isn't a possibility to return DECLINED, but you can set arbitarry http
status codes by using the Apache API:
[-
$req_rec -> status (401) ;
exit ;
-]
See "perldoc Apache" for more details
Gerald
-------------------------------------------------------------
Gerald Richter ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting
Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz
E-Mail: [EMAIL PROTECTED] Voice: +49 6133 925131
WWW: http://www.ecos.de Fax: +49 6133 925152
-------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]