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

2008-09-17 Thread grsvarma019
Hi, I am using mod_perl for authentication. I could able to extract the Host and path information of the currect URL using apache request object. like $apache-header_in(Host) and $apache-uri respectively. But , i couldn't find how to extract the protocol(http or https ) from the current URL

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

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

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

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