On Friday, October 08, 1999 3:35 PM, Andrei A. Voropaev 
[SMTP:[EMAIL PROTECTED]] wrote:
> 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

But you shoudn't be radubg $r->content for a GET, right?

> same seems to be true for $r->read.

If you use $r->content then you don't want to use r->read, right?

> As to $r->args it's not mentioned
> in the book that you can call $r->args($new_query_string) to set new

I suggest you complain to the book's authors :-) However I will update 
Apache.pm's pod documentation which also doesn't mention this.

> query string. And if we do internal redirect then we usually need to
> provide the content string for it.

I don't know what we "usually" need to do for an internal redirect. I do 
know that the symptoms you described have come up before, and I fished out 
an answer from the archives.
I'm sorry I didn't provide a turnkey solution, but maybe my answer put you 
on the right track?

>
> Andrei

--
Eric

Reply via email to