On Wednesday, 20 July 2011 17:14:38 Zbynek Jun wrote:
> post body:
> a=&a&b=x&b=&b&a=x&c=x
> 
> ideal case:
> 'a' => [ '', '', 'x' ], 'b' => [ 'x', '', ''], 'c' => [ 'x']

I'd say the ideal case would be a list:

  'a', '', 'a', undef, 'b', 'x', 'b', undef, 'a', 'x', 'c', 'x'

Anything else drops information. "a=" is not necessarily the same as 
simply "a" and "a=1&b=2&a=3" is not necessarily the same as 
"a=1&a=3&b=2".

> from Apache2::Request:
> 'a' => '', 'b' => '', 'c' => 'x', 'a&b' => 'x', 'b&a' => 'x'
> 
>         Post body is properly encoded and posted with Content-Type 
> 'application/x-www-form-urlencoded; charset=UTF-8' via
> XMLHttpRequest.  Server is Apache/2.2.17 (FreeBSD), libapreq2-2.13.
> Some ideas ? Is it possible to get unparsed post body from
> Apache2::Request ?

You can read the request body via the Apache2::RequestRec object if 
Apache2::RequestIO is loaded.

  http://perl.apache.org/docs/2.0/api/Apache2/RequestIO.html#C_read_

Torsten Förtsch

-- 
Need professional modperl support? Hire me! (http://foertsch.name)

Like fantasy? http://kabatinte.net

Reply via email to