in reply to $ENV{HTTPS} not consistent

If you are using cgi.pm you can get the calling url by doing:
$myself = $query->url();
then test for https or http...

-Waswas

Replies are listed 'Best First'.
Re: Re: $ENV{HTTPS} not consistent
by Kanji (Parson) on Nov 23, 2002 at 20:56 UTC

    If you're going to use CGI.pm, then it would be quicker to use the https method (or function, if you add :ssl to the import list) to see if SSL is enabled...

    if ($query->https) { ... }

        --k.