Tracy12 wrote:
How can we retrieve the URL Scheme (http/https ?) from a perl module, Port given that only input parameter is $r

should we use       my $uri = Apache::URI->parse($r) and $uri->scheme;


I use $r->get_server_port. If it's 80 it's http, if it's 443, it's https. Of course, this breaks if you run them on different ports.

Rob

Reply via email to