On Dec 22, 2007, at 11:53 AM, Adam Prime wrote:
I believe in this situation what you want is $r->status
(Apache::Const::HTTP_OK). HTTP_OK and OK are not the same thing
at all.
It's a mean trick... one is an HTTP constant, the other is a
mod_perl constant ( ie HTTP_ prefix and no prefix )
When you print Apache2::Const::OK do you get 200?
I'm including it using:
use Apache2::Const -compile => qw( OK REDIRECT FORBIDDEN
REMOTE_DOUBLE_REV );
I get 0. I get the correct codes for others like FORBIDDEN, etc. Go
figure...
I think what I should have used was HTTP_OK, that seems t
Adam Prime wrote:
Boysenberry Payne wrote:
I only ask because I tried a $r->status(Apache2::Const::OK) and got
a 500 returned in the header even though my handler returned with
Apache::Const::OK also...
To avoid the 500 header I had to do $r->status(200); I imagine the
status code isn't going
Boysenberry Payne wrote:
I only ask because I tried a $r->status(Apache2::Const::OK) and got a
500 returned in the header
even though my handler returned with Apache::Const::OK also...
To avoid the 500 header I had to do $r->status(200); I imagine the
status code isn't going to change
too so
Boysenberry Payne wrote:
I only ask because I tried a $r->status(Apache2::Const::OK) and got a
500 returned in the header even though my handler returned with
Apache::Const::OK also...
To avoid the 500 header I had to do $r->status(200); I imagine the
status code isn't going to change too soo
I only ask because I tried a $r->status(Apache2::Const::OK) and got a
500 returned in the header
even though my handler returned with Apache::Const::OK also...
To avoid the 500 header I had to do $r->status(200); I imagine the
status code isn't going to change
too soon, so I ought to be oka
Boysenberry Payne wrote:
I found that $r->status() required something other than Apache2::Const
in one of my modules and it got me wondering what the Constant values
actually were. Now I could go through and print each one I suppose, but I
thought looking at them in Apache2::Const.pm would be be
I found that $r->status() required something other than Apache2::Const
in one of my modules and it got me wondering what the Constant values
actually were. Now I could go through and print each one I suppose,
but I
thought looking at them in Apache2::Const.pm would be better, but the
package s