Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ModPerl: Docs-dev

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

 

 

ModPerl docs-dev RSS feed   Index | Next | Previous | View Threaded


geoff at modperlcookbook

Nov 26, 2003, 6:44 AM

Post #1 of 2 (1345 views)
Permalink
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 [at] perl
For additional commands, e-mail: docs-dev-help [at] perl


stas at stason

Nov 26, 2003, 10:51 AM

Post #2 of 2 (1235 views)
Permalink
Re: cvs commit: modperl-docs/src/docs/2.0/user/handlers intro.pod [In reply to]

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 [at] stason http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com


---------------------------------------------------------------------
To unsubscribe, e-mail: docs-dev-unsubscribe [at] perl
For additional commands, e-mail: docs-dev-help [at] perl

ModPerl docs-dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.