On Tue, 18 Apr 2000, Chris D'Annunzio wrote:
> Is there a way to pass data into a SubRequest using the post method?
no, you'll need to use GET and $r->args
which can be made transparent with the module below, provided your code
can deal with post POST and GET requests.
package Apache::POST2GET;
use Apache::Constants qw(M_GET);
sub handler {
my $r = shift;
if ($r->method eq 'POST') {
my $content = $r->content;
$r->args($content);
$r->method('GET');
$r->method_number(M_GET);
$r->headers_in->unset('Content-length');
}
}
__END__
#httpd.conf
PerlInitHandler Apache::POST2GET