[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] is-secure tag
>> >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
I asked my host about this and I was instructed to use [env SERVER_PORT]
which returns either 80 or 443 depending on HTTP or HTTPS, and this works
great. Thanks for everyone's help!
- Grant