return() and REDIRECT Disasters Within mod_perl: Please Help

1999-12-03 Thread Jason Simms
I am having a _really_ strange problem with return() under mod_perl. It seems that any time I attempt to do a return REDIRECT after I have accessed any passed parameters, the redirect will fail. However, if I do the redirect without accessing any passed parameters (either via POST or GET),

Re: return() and REDIRECT Disasters Within mod_perl: Please Help

1999-12-03 Thread darren chamberlain
I have had similar problems, and the solution seems to be (not sure why) to print the redirect the same way you would using CGI.pm and $r-send_http_header and then return OK, as in: use CGI; use Apache; use Apache::Constants 'OK'; sub handler { my $r = shift; my $q = CGI-new(); my

Re: return() and REDIRECT Disasters Within mod_perl: Please Help

1999-12-03 Thread Ken Y. Clark
On Fri, 3 Dec 1999, Jason Simms wrote: I am having a _really_ strange problem with return() under mod_perl. It seems that any time I attempt to do a return REDIRECT after I have accessed any passed parameters, the redirect will fail. However, if I do the redirect without accessing any

Re: return() and REDIRECT Disasters Within mod_perl: Please Help

1999-12-03 Thread Eric L. Brine
But, the strange part is, when I use the following code, the browser spins and spins and finally just dies when it reaches the return(): sub handler { my $r = shift; my %args = $r-content; content() reads the data sent by the client. When it's called a second time by the