This approach should be ok:
my $s = $r->lookup_uri($r->uri);
my $ssl = $s->subprocess_env('HTTPS');
I looked at this a while back and this is usually set internally
in apache by the ssl implementation.
João Pedro
brian moseley wrote:
>
> warning: these may be silly questions. but i've looked
> through the guide and not found the answers, so hopefully
> they're not that silly.
>
> how can i test in a content handler if the request was
> received over an ssl connection? do i have to look for an
> environment variable? is there a test that works with all
> the various ssl modules? is there a standard "ssl
> interface"? if so, where is it documented?
>
> thanks!