httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason Funk <jasonlf...@gmail.com>
Subject Re: Finding out original request's scheme
Date Thu, 21 Jul 2011 14:44:18 GMT
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 <ignazb@gmail.com> wrote:

> 2011/7/21 Sorin Manolache <sorinm@gmail.com>:
> > On Thu, Jul 21, 2011 at 11:02, Ignaz Birnstingl <ignazb@gmail.com>
> 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
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message