Re: Find the values of Apache2::Const

2007-12-23 Thread Jonathan Vanasco
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 )

Re: Find the values of Apache2::Const

2007-12-22 Thread Boysenberry Payne
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

Re: Find the values of Apache2::Const

2007-12-22 Thread Colin Wetherbee
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

Re: Find the values of Apache2::Const

2007-12-22 Thread Adam Prime
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

Re: Find the values of Apache2::Const

2007-12-22 Thread Colin Wetherbee
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

Re: Find the values of Apache2::Const

2007-12-22 Thread Boysenberry Payne
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

Re: Find the values of Apache2::Const

2007-12-22 Thread Colin Wetherbee
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

Find the values of Apache2::Const

2007-12-22 Thread Boysenberry Payne
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