httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Noordhuis <i...@bnoordhuis.nl>
Subject Re: determine if mod called via ssl request
Date Tue, 21 Sep 2010 15:38:02 GMT
On Tue, Sep 21, 2010 at 17:24, J.D. Mullin <jeremym1234@cableone.net> wrote:
> It seems like I am missing some very simple way to tell if the request was
> made via https, but I have scanned all of the structures available from the
> request_rec and I don't see anything obvious.

const char *flag = getenv("HTTPS");
if (flag && !strcmp(flag, "on")) {
    // HTTPS-only logic
}

Mime
View raw message