Re: lookup_uri() returns 200 when 404 expected

2001-07-06 Thread Paul Sharpe
barries wrote: On Thu, Jul 05, 2001 at 04:03:00PM +0100, Paul Sharpe wrote: barries wrote: On Thu, Jul 05, 2001 at 03:21:12PM +0100, Paul Sharpe wrote: Here's my handler... package Foo::Test; use strict; use warnings; use Apache::Constants qw(:common HTTP_OK);

$r-finfo stability? [Was: lookup_uri() returns 200 when 404 expected]

2001-07-06 Thread barries
On Fri, Jul 06, 2001 at 11:53:52AM +0100, Paul Sharpe wrote: Presumably $s-finfo would be more efficient? Yes, if it's stable for your config. I've had coredumps with it in the past some time and have since stayed away from it by habit. 'course that was several versions of mod_perl and perl

RE: $r-finfo stability? [Was: lookup_uri() returns 200 when 404 expected]

2001-07-06 Thread Geoffrey Young
-Original Message- From: barries [mailto:[EMAIL PROTECTED]] Sent: Friday, July 06, 2001 9:38 AM To: Paul Sharpe Cc: [EMAIL PROTECTED] Subject: $r-finfo stability? [Was: lookup_uri() returns 200 when 404 expected] [snip] Anyone else have good/bad experience w/ $r-finfo

Re: $r-finfo stability? [Was: lookup_uri() returns 200 when 404 expected]

2001-07-06 Thread barries
On Fri, Jul 06, 2001 at 09:54:12AM -0400, Geoffrey Young wrote: -Original Message- From: barries [mailto:[EMAIL PROTECTED]] Sent: Friday, July 06, 2001 9:38 AM To: Paul Sharpe Cc: [EMAIL PROTECTED] Subject: $r-finfo stability? [Was: lookup_uri() returns 200 when 404

RE: $r-finfo stability? [Was: lookup_uri() returns 200 when 404 expected]

2001-07-06 Thread Geoffrey Young
-Original Message- From: barries [mailto:[EMAIL PROTECTED]] Sent: Friday, July 06, 2001 10:15 AM To: Geoffrey Young Cc: [EMAIL PROTECTED] Subject: Re: $r-finfo stability? [Was: lookup_uri() returns 200 when 404 expected] On Fri, Jul 06, 2001 at 09:54:12AM -0400, Geoffrey

lookup_uri() returns 200 when 404 expected

2001-07-05 Thread Paul Sharpe
Here's my handler... package Foo::Test; use strict; use warnings; use Apache::Constants qw(:common HTTP_OK); sub handler { my $r = shift; my $uri = 'foo.html'; $r-content_type('text/plain'); $r-send_http_header; $r-lookup_uri($uri); $r-print(lookup_uri($uri) status = ,$r-status,\n);

Re: lookup_uri() returns 200 when 404 expected

2001-07-05 Thread barries
On Thu, Jul 05, 2001 at 03:21:12PM +0100, Paul Sharpe wrote: Here's my handler... package Foo::Test; use strict; use warnings; use Apache::Constants qw(:common HTTP_OK); sub handler { my $r = shift; my $uri = 'foo.html'; $r-content_type('text/plain'); $r-send_http_header;

Re: lookup_uri() returns 200 when 404 expected

2001-07-05 Thread Paul Sharpe
barries wrote: On Thu, Jul 05, 2001 at 03:21:12PM +0100, Paul Sharpe wrote: Here's my handler... package Foo::Test; use strict; use warnings; use Apache::Constants qw(:common HTTP_OK); sub handler { my $r = shift; my $uri = 'foo.html'; $r-content_type('text/plain');

Re: lookup_uri() returns 200 when 404 expected

2001-07-05 Thread barries
On Thu, Jul 05, 2001 at 04:03:00PM +0100, Paul Sharpe wrote: barries wrote: On Thu, Jul 05, 2001 at 03:21:12PM +0100, Paul Sharpe wrote: Here's my handler... package Foo::Test; use strict; use warnings; use Apache::Constants qw(:common HTTP_OK); sub handler { my

Re: lookup_uri() returns 200 when 404 expected

2001-07-05 Thread Paul Sharpe
barries wrote: On Thu, Jul 05, 2001 at 04:03:00PM +0100, Paul Sharpe wrote: barries wrote: On Thu, Jul 05, 2001 at 03:21:12PM +0100, Paul Sharpe wrote: Here's my handler... package Foo::Test; use strict; use warnings; use Apache::Constants qw(:common HTTP_OK);

Re: lookup_uri() returns 200 when 404 expected

2001-07-05 Thread barries
On Thu, Jul 05, 2001 at 04:57:13PM +0100, Paul Sharpe wrote: What would happen if the URI translated to something other than a file e.g. CGI? You get the filename of the script. - Barrie