httpd-apreq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zbynek Jun <zbynek....@junix.cz>
Subject post body parsing
Date Wed, 20 Jul 2011 15:14:38 GMT
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

Mime
View raw message