Detect if a connection is secured

From CodeCodex

Implementations[edit]

Java[edit]

Use the servlet request's isSecure() or getAuthType() methods. Or you look at these HTTP headers : CERT_KEYSIZE , CERT_KEYSIZE, HTTPS_KEYSIZE Note: for a javascript solution see this HowTo