On Tue, Sep 21, 2010 at 17:24, J.D. Mullin <jeremym1...@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
}

Reply via email to