[ic] is-secure tag

Stefan Hornburg interchange-users@icdevgroup.org
Wed Oct 30 05:03:00 2002


On Tue, 29 Oct 2002 12:30:28 -0800
"Grant" <listbox@email.com> wrote:

> 
> >On Mon, 28 Oct 2002 15:18:46 -0800
> >"Grant" <listbox@email.com> wrote:
> >
> >> I'm having trouble getting Kevin's is-secure tag to work
> >properly.  Here's a
> >> link to it:
> >>
> >> http://www.interchange.rtfm.info/downloads/usertags/is_secure.usertag
> >>
> >> I have mine set up just like the example, but it always returns 0 (not
> >> secure) even on HTTPS pages.  I restarted IC after adding the tag to
> >> ic/usertag.  Any suggestions?
> >
> >I noticed too that querying CGI::secure fails sometimes. I now use:
> >
> >if ($Tag->env('HTTPS') =~ /\S/) {
> >	$Scratch->{secure} = 1;
> >} else {
> >	$Scratch->{secure} = 0;
> >}
> >
> >The env usertag is part of 4.9.x, but works with 4.8.x flawlessly.
> >
> >Ciao
> >      Racke
> 
> Thanks for your help.  Unfortunately, it seems [scratch secure] equals 0 for
> both HTTP and HTTPS pages for me.  I can't figure out what's going wrong
> here....

Put the printenv CGI script from the Apache distribution into your cgi-bin
directory and look at the output if you call it with a https:// URL.

Bye
    Racke