On Thursday 02 June 2005 21:51, Vsevolod (Simon) Ilyushchenko wrote: > I'm probably missing something obvious, but how do I get the current URL > scheme (HTTP or HTTPS) of a request? The full URI will work too. > Everything that I see in the Apache2::RequestRec API only returns parts > of the URI which don't tell me whether it's HTTP or HTTPS.
In the response phase you can check $r->subprocess_env('HTTPS'). For other phases Apache2::ModSSL adds a is_https method to Apache2::Connection or use Apache::SSLLookup. It is a subclass of Apache2::RequestRec and implements is_https. Torsten
pgpBG9QAXiEmT.pgp
Description: PGP signature