码迷,mamicode.com
首页 > Web开发 > 详细

asp.net获取请求的协议头是否启动了SSL(Https)

时间:2017-01-19 14:30:00      阅读:250      评论:0      收藏:0      [点我收藏+]

标签:协议   get   lower   over   ack   secure   请求   -o   log   

方法:

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

asp.net获取请求的协议头是否启动了SSL(Https)

标签:协议   get   lower   over   ack   secure   请求   -o   log   

原文地址:http://www.cnblogs.com/EasonJim/p/6306166.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!