You are viewing a plain text version of this content. The canonical link for it is here.
Posted to docs-dev@perl.apache.org by Geoffrey Young <ge...@modperlcookbook.org> on 2003/11/26 14:44:51 UTC

Re: cvs commit: modperl-docs/src/docs/2.0/user/handlers intro.pod

>   +handler, but C<Apache::OK>. If you want to set the status for the HTTP
>   +response, use the C<$r-E<gt>status()> method.

this is never a good idea, for reasons I have stated several times on the
main lists.

--Geoff


---------------------------------------------------------------------
To unsubscribe, e-mail: docs-dev-unsubscribe@perl.apache.org
For additional commands, e-mail: docs-dev-help@perl.apache.org


Re: cvs commit: modperl-docs/src/docs/2.0/user/handlers intro.pod

Posted by Stas Bekman <st...@stason.org>.
Geoffrey Young wrote:
>>  +handler, but C<Apache::OK>. If you want to set the status for the HTTP
>>  +response, use the C<$r-E<gt>status()> method.
> 
> 
> this is never a good idea, for reasons I have stated several times on the
> main lists.

Right, thanks for proofreading it, Geoff. I've changed it to:

Therefore you don't want to return C<Apache::HTTP_OK> from your HTTP response
handler, but C<Apache::OK> and Apache will send the C<200 OK> status
by itself.

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


---------------------------------------------------------------------
To unsubscribe, e-mail: docs-dev-unsubscribe@perl.apache.org
For additional commands, e-mail: docs-dev-help@perl.apache.org