Ged Haywood wrote:

On Tue, 2 Dec 2003 [EMAIL PROTECTED] wrote:

Is there another way to get only the post data parameters from a http request?

my $post_data = STDIN;

I don't think so, Ged. The above code will assign the STDIN filehandle to $post_data. ;)


To slurp the whole request's data you will call $r->content in mp1.
If you want to work with STDIN, you'd need to do something like:

read(STDIN, my $post_data, $r->headers_in->{{'Content-Length'});

but I think the poster is after getting a parsed request body, disregarding any arguments from $r->args/QUERY_STRING.

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


-- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html



Reply via email to