How to determine if a browser is using an SSL or TLS connection