On Fri, Oct 08, 1999 at 09:39:30AM +0200, Eric Cholet wrote:
> On Friday, October 08, 1999 3:35 AM, Dmitry Beransky [SMTP:[EMAIL PROTECTED]] wrote:
> > I've been playing around with internal redirects of POST requests.  They 
> > seem to work fine as long as I don't call Apache::content() or any other 
> > function that reads a request's content.  However, as soon as I read it, 
> 
> This has come up before. Try this (snippet courtesy DougM :-)
> 
>     my $r = shift;
>     $r->method("GET");
>     $r->method_number(M_GET);
>     $r->headers_in->unset("Content-length");
>     $r->internal_redirect_handler("/new/url");
> 

Well. I wish you have also mentioned how to unset $r->content()
because it reads content only once. Second time returns undef. The
same seems to be true for $r->read. As to $r->args it's not mentioned
in the book that you can call $r->args($new_query_string) to set new
query string. And if we do internal redirect then we usually need to
provide the content string for it.

Andrei

Reply via email to