Hello
I'm trying to Redirect a POST request and forwarding the content, but I
can't make it work.

I use the following code:
-----------
use Apache::Request ();
use Apache::Constants qw(:common :methods MOVED);

sub handler {
  my $r= shift;
  my $query= Apache::Request->new($r);

  my $content = $r->content;
  $r->method_number(M_GET);
  $r->method("GET");
  $r->headers_in->unset("Content-length");
  $r->args($content);

  return $r->internal_redirect("/RedirectHandler/");
-----------

My redirect works but when I read the $r->as_string in the RedirectHandler I
see a "POST /post HTTP/1.1". That should be a GET right?

I can't read any content in the RedirectHandler either.

Many thanks,
-Nick

Reply via email to