Folks,I am finding this frustrating - many of the documented functions do not appear to work,
another example - I am trying to find the local IP and port of the connection - local_ip works, $r->connection->local_addr->port() does not, and $r->server->port() return 0.
Has anyone already written an equivalent of phpinfo() which basically dumps out everything-you-might-want-to-know about the current OS, server, request, cookies, environment and connection?
More specifically, I was also hoping to gain direct access to the SSL connection info for client certificate authentication - e.g. the stuff that appears in %ENV like:
SSL_CLIENT_S_DN_CN SSL_CLIENT_S_DN_Email SSL_CLIENT_S_DNAm very happy to be redirected to updated / accurate info, though I have read the relevant sections in the docs and horsey book that I could find.
Regards & thanks, Jeff -------- Original Message -------- Subject: undefined subroutine: get_server_description, get_server_banner From: Jeff Armstrong <suppressed> To: modperl <suppressed> Date: 08 April 2008 12:26:55
Folks,<http://perl.apache.org/docs/2.0/api/Apache2/ServerUtil.html#C_get_server_description_> indicates that I should be able to:$description = Apache2::ServerUtil::get_server_description(); however, I find that Apache2::ServerUtil::get_server_description(); Apache2::ServerUtil::get_server_banner(); warn => Undefined subroutine and Apache2::ServerUtil->user_id; Apache2::ServerUtil->group_id; warn => Can't locate object method Are the docs incorrect, or am I doing the wrong thing? ---- Other subs work ok: get_server_built get_server_version server_root Debian stable (etch) Apache/2.2.3 mod_ssl/2.2.3 OpenSSL/0.9.8c mod_apreq2-20051231/2.6.0 mod_perl/2.0.2 Perl/v5.8.8 Many thanks, Jeff
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.