3

Apache2::Request doesn't seem to provide a way to get the raw post data; is there one that I am missing?

Alternatively, is there a way to read the post data separately (in a content handler - nothing should have messed with the post data before then) and initialize Apache2::Request with it?

ysth
  • 96,171
  • 6
  • 121
  • 214

1 Answers1

0

from mod_perl cookbook:

my $r = shift;

my $content;
$r->read($content,$r->header_in('Content-length'));

my @pairs = split(/[&;]/,$content);

foreach my $pair (@pairs) {
    my ($parameter,$value) = split('=',$pair,2);
}
Bill McGonigle
  • 215
  • 1
  • 9