Scott Alexander wrote:
> I'm trying to get the data that is posted from the browser durring a
> request.
>
> if ($r->method ne 'GET')
> {
> $r->read($buffer,$r->header_in('Content-Length'));
> #proccess data...
> }
There's a higher-level method for that, $r->content; I'd do something
like this:
if ($r->method eq 'POST' &&
$r->header_in('Content-type') =~ m!^application/x-www-form-urlencoded!)
{
my $data = $r->content;
# process data ...
}
Although you should seriously consider using a higher-level interface,
such as Apache::Request (downloadable from mod_perl's ftp server under
the name "libapreq"), or CGI.pm.
--
Roger Espel Llima, [EMAIL PROTECTED]
http://www.iagora.com/~espel/index.html