httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sander Temme <scte...@apache.org>
Subject Re: Is there are any way to know if the request is regular (http) or SSL (https) in a module?
Date Tue, 18 Dec 2007 02:54:34 GMT

On Dec 17, 2007, at 6:36 PM, Eric Covener wrote:

>> I would like to know the request type in my module
>> (handler/filter), is there any way to know that (HTTP
>> vs HTTPS)?
>
> apr_table_get(r->subprocess_env, "HTTPS")  might be  what you want

That gets set in the Fixup hook, relatively late in the request  
processing process.  You could call ap_http_scheme(r) to run the  
request scheme hook, which will return "https" if SSL is disabled or  
optional on the vhost that accepted the request.

S.

-- 
Sander Temme
sctemme@apache.org
PGP FP: 51B4 8727 466A 0BC3 69F4  B7B8 B2BE BC40 1529 24AF




Mime
View raw message