I\'m sorry for confusing title of the question, I\'ll try to clarify what the issue is.
I\'m doing some work with Mongrel2 server and I\'m writing a PHP handler that has
Found on php.net maybe this will be useful:
$_POST = array();
$str = 'first=value&arr[]=foo+bar&arr[]=baz';
parse_str(html_entity_decode($str), $_POST);
print_r($_POST);
Array
(
[first] => value
[arr] => Array
(
[0] => foo bar
[1] => baz
)
)
Note:
The magic_quotes_gpc setting affects the output of this function, as parse_str() uses the same mechanism that PHP uses to populate the $_GET, $_POST, etc. variables.
http://php.net/manual/en/function.parse-str.php