Re: get the incoming TCP protocol type

Torsten Förtsch <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Message-ID <[email protected]>
On 11/24/2012 08:11 PM, Fred Moyer wrote:
> On Sat, Nov 24, 2012 at 7:58 AM, André Warnier <[email protected]> wrote:
>> > Inside a mod_perl2 request handler, how can I find out if the current
>> > request was received via HTTP or HTTPS ?
> Torsten is the author of this module, so he can explain it in more
> detail, but it looks like it can do part of what you need:
> 
> https://metacpan.org/module/Apache2::ModSSL

That is, of course, what I would use. If I recall correctly, the module
was written to have access to the SSL related information *prior to* the
response phase. If you need it only in the response phase you can have
mod_ssl export almost all of the stuff accessible via Apache2::ModSSL as
environment variables accessible via $r->subprocess_env.

Torsten
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.