On Sep 1, 2006, at 1:53 PM, Bas Schulte wrote:
I may be getting a bit rusty but I can't figure out which method to use to get at the current url from the Apache request object. $r-uri () gives me the path but not the schema, host and port.
$r->unparsed_uri will give you the GET args $r-> the_request will give you the HTTP header and this might help:http://perl.apache.org/docs/2.0/api/Apache2/ Connection.html#C_base_server_ http://perl.apache.org/docs/2.0/api/Apache2/ Connection.html#C_client_socket_
( $c = $r->connection ) andhttp://perl.apache.org/docs/2.0/api/Apache2/ RequestUtil.html#C_get_server_name_ http://perl.apache.org/docs/2.0/api/Apache2/ RequestUtil.html#C_get_server_port_
http://perl.apache.org/docs/2.0/api/Apache2/ServerRec.html#C_port_ ( $s = $r->server() )
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.