方法:
HttpContext.Current.Request.IsSecureConnection SLL:True HttpContext.Current.Request.Url.ToString().ToLower().Contains("https") SLL:True HttpContext.Current.Request.Url.Scheme SLL:https
参考:
http://stackoverflow.com/questions/1356389/asp-net-check-if-page-is-http-or-https
时间: 2024-11-04 16:59:24