Test is_secure for https connection