use*_*001 6 perl apache2 http-post mod-perl2
有没有人知道如何使用mod_perl2访问/修改POST请求数据.在GET方法中,可以获取/设置请求QUERY字符串:
$args = $r->args();
$prev_args = $r->args($new_args);
Run Code Online (Sandbox Code Playgroud)
如何在POST方法中获取/设置请求QUERY字符串?
获取POST参数Apache2::Request::param.
要设置,首先APR::Request::Param::Table从body方法中获取一个对象.将其重新bless放入APR::Table对象,然后使用其方法来操纵数据.