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 )
and
http://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() )