Ok, i have read the docs and i (think) finish with my small problem.
The thing is that, docs actually in perl.apache.org works as follow (and if
i am wrong please tell me!):
To see how to do something in modperl2 you DO NOT have to
- search through modperl2 docs (still)
And you DO have to
- search the modperl1 docs, find your way to do the thing, and after look
for the modperl1 -> modperl2 deprecated functions if they have changed in
any way.
This is the fastest way i've found to go on, since doc 2.0 is still growing.
Once i did this, i found the follow way to do my own ENV hash with modperl
API.
my $apache_headers = $apache->headers_in;
$info->{father} = $apache->hostname;
$info->{file} = $apache->filename;
$info->{name} = $apache_headers->{Referer};
if ($apache->method eq 'POST') {
$info->{query} = $apache->content;
# i parse the string after
} elsif ($apache->method eq 'GET') {
$info->{query} = $apache->args;
}
$info->{ip} = $apache->connection->remote_ip();
$info->{cookie} = $apache_headers->{Cookie};
This is working now for me, so thanks everybody.
--
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html