I just check the local port:

 c->local_addr->port == 443 -> HTTPS
 c->local_addr->port == 80 -> HTTP

It should work for most implementations.

On Thu, Jul 21, 2011 at 9:19 AM, Ignaz Birnstingl <[email protected]> wrote:

> 2011/7/21 Sorin Manolache <[email protected]>:
> > On Thu, Jul 21, 2011 at 11:02, Ignaz Birnstingl <[email protected]>
> wrote:
> >> Hello,
> >>
> >> is there an easy way to find out a request's scheme part (i.e. http or
> >> https)? r->parsed_uri.scheme seems to be a null pointer. I currently
> >> iterate r->input_filters and check if filter->frec->name is "ssl/tls
> >> filter" but that doesn't seem right. Any suggestions?
> >
> > Check the HTTPS environment variable (r->subprocess_env).
> >
> > S
> >
>
> Thanks for the reply. Unfortunately that does not work:
> r->subprocess_env is empty.
>
> -- Ignaz
>

Reply via email to