httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Laurie <>
Subject Re: How to find scheme (http/https) in a module?
Date Sat, 04 Nov 2000 17:29:57 GMT
Vinod Mehra wrote:
> What's the standard way (accross all SSL vendors) to find out in a apache
> module
> if you are in a http/https mode?
> I was assuming "request_rec->parsed_uri.scheme" to return me http/https, but
> it returns NULL!
> Also looks like ap_table_get(r->subprocess_env,"HTTPS") is not a standard way
> to do it. At least it doesn't work with Raven.

That tends to only get set if a CGI is about to be called. I created a
function for setting all env vars in Apache-SSL to solve this problem
(its needed for other things, too, like my Keynote module) but in 2.0 it
should be a hook, I think.




"There is no limit to what a man can do or how far he can go if he
doesn't mind who gets the credit." - Robert Woodruff

View raw message