views:

36

answers:

1

Does anyone know how to access/modify the POST request data using mod_perl2. IN GET method one can get/set the request QUERY string:

  $args      = $r->args();
  $prev_args = $r->args($new_args);

How to get/set the request QUERY string in POST method ?

+1  A: 

Get POST parameters with Apache2::Request::param.

To set, first get an APR::Request::Param::Table object from the body method. Rebless it into an APR::Table object, then use its methods to manipulate the data.

daxim