Re: How to extract the protocol part of URL from an apache request

2008-09-17 Thread Torsten Foertsch
On Wed 17 Sep 2008, John ORourke wrote: > I had the same problem but the machine serving the request had a > reverse proxy in front of it.  I used the following to inject a > header on the proxy: > >         SetEnv SCHEME http >         RewriteCond %{HTTPS} on >         RewriteRule ^(.*) $1 [E=SCHE

Re: How to extract the protocol part of URL from an apache request

2008-09-17 Thread John ORourke
Torsten Foertsch wrote: 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. I had the sam

Re: How to extract the protocol part of URL from an apache request

2008-09-17 Thread Torsten Foertsch
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 informatio

Re: How to extract the protocol part of URL from an apache request

2008-09-17 Thread Ryan Gies
On Wed, 17 Sep 2008 00:21:52 -0700 (PDT) grsvarma019 wrote: > But , i couldn't find how to extract the protocol(http or https ) > from the current URL using apache request object. > Can you please anybody help me in this? See: perldoc Apache2::RequestRec # HTTP protocol version number $pr