perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Torsten Foertsch <>
Subject Re: How to extract the protocol part of URL from an apache request
Date Wed, 17 Sep 2008 08:09:23 GMT
On Wed 17 Sep 2008, grsvarma019 wrote:
> But , i couldn't find how to extract the protocol(http or https )

There are Apache2::ModSSL and Apache::SSLLookup on CPAN in case you need 
that information in a request phase prior to the ResponseHandler. 
Mod_ssl can be configured to export SSL information as environment 
variables. Those can be looked up in a ResponseHandler via 

Further, if you are unable to install an XS module (precompiled 
mod_perl+apache on windows without C compiler for instance) and you 
need SSL information prior to the response phase you can issue a 
subrequest to get it. Not the fastest way but it works. I have 
described that technique in a previous mail to the list this or last 


Need professional mod_perl support?
Just hire me:

View raw message