[ale] OT: javascript question

Warren Myers volcimaster at gmail.com
Tue May 1 23:33:06 EDT 2007


I'm not a Javascript guru, but can't you snag the URL and look at the 5th
char? if it's 's', then it's SSL, if it's ':', it's plaintext.

Are you trying to make sure all traffic to certain segments of the site go
through SSL?

If you want the whole site to run on https, you can listen on port 80 just
to redirect to 443.

WMM

On 5/1/07, Jim Popovitch <yahoo at jimpop.com> wrote:
>
> Server side... I need to use simple javascript to determine the protocol
> (http/https) used by a client when connecting to a server.   Ideas?
>
> -Jim P.
>
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://www.ale.org/mailman/listinfo/ale
>



-- 
http://warrenmyers.com
"God may not play dice with the universe, but something strange is going on
with the prime numbers." --Paul Erd?s
"It's not possible. We are the type of people who have everything in our
favor going against us." --Ben Jarhvi, Short Circuit 2
-------------- next part --------------
An HTML attachment was scrubbed...




More information about the Ale mailing list