[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Port/Sheme information


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


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.