Hi,

i am experiencing problems with parsing urlencoded post body with libapreq2/Apache2::Request. It returns bad set of variable/value pairs in case of ugly formated post body. For examle:

post body:
a=&a&b=x&b=&b&a=x&c=x

ideal case:
'a' => [ '', '', 'x' ], 'b' => [ 'x', '', ''], 'c' => [ 'x']

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 ?

TIA

Zbynek Jun

Reply via email to