Re: Apache::Request and redirects

2000-12-30 Thread Dave Rolsky
On Sat, 30 Dec 2000, Matt Sergeant wrote: > > Another minor issue is that Apache::Request is not trivially subclassed, > > the returned value from $self->SUPER::new() must be reblessed into the > > desired class. > > Thats a pretty standard perl idiom: > > sub new { > my $class = shift; > my

Re: Apache::Request and redirects

2000-12-30 Thread Matt Sergeant
On Sun, 24 Dec 2000, Shevek wrote: > I want the parameters from the first request to be preserved into the > subrequest. Store in a global variable then: $MyPackage::request = $apr; Then access in the internal redirect. > Another minor issue is that Apache::Request is not trivially subclassed

Apache::Request and redirects

2000-12-28 Thread Shevek
I'm not on the list so please CC me on any replies. It seems that using Apache::Request and $r->internal_redirect is not a good idea. The code fragment: 119 my $mstatus = $mh->handle_request($r); 120 if ($mstatus != HTTP_OK) { 121 my $filename = $r->filename; 122