当前在线人数16073
[合集] How to tell if a connection is - 未名空间精华区
首页 - 版面精华区 - 电脑网络精华区 - 窗口里的风景版精华区 - 精华区文章阅读 首页
未名交友
[更多]
[更多]
[合集] How to tell if a connection is

发信人: les (Walk the walk, talk the talk), 信区: DotNet
标  题: [合集] How to tell if a connection is http or https?
发信站: BBS 未名空间站 (Sat May 26 23:09:09 2007), 站内

☆─────────────────────────────────────☆
  Dintern (.Net newbie) 于 (Tue Jan 23 17:01:41 2007) 提到:

I need to check if the server is using an SSL connection inside an
aspx page. Is there an api or property that shows it directly?


☆─────────────────────────────────────☆
  a9 (嗯) 于 (Tue Jan 23 17:55:38 2007) 提到:

if the uri is start with http then it's http
if the uri is start with https then it's https

【 在 Dintern (.Net newbie) 的大作中提到: 】
: 标  题: How to tell if a connection is http or https?
: 发信站: BBS 未名空间站 (Tue Jan 23 17:01:41 2007)
:
: I need to check if the server is using an SSL connection inside an
: aspx page. Is there an api or property that shows it directly?
: --
:
: ※ 来源:·BBS 未名空间站 http://mitbbs.com·[FROM: 204.128.]





☆─────────────────────────────────────☆
  gravy (不过...) 于 (Wed Jan 24 10:03:55 2007) 提到:

Request.Url.StartsWith("https")


☆─────────────────────────────────────☆
  ceed (ceed) 于 (Wed Jan 24 22:04:48 2007) 提到:

what if the secure connection is using http://site_name:443

Should check Request.IsSecureConnection instead


☆─────────────────────────────────────☆
  Dintern (.Net newbie) 于 (Thu Jan 25 20:02:57 2007) 提到:

cool, thanks everyone.

【 在 ceed (ceed) 的大作中提到: 】
: what if the secure connection is using http://site_name:443
: Should check Request.IsSecureConnection instead





[返回]
赞助链接
未名交友
将您的链接放在这儿
 

Site Map - Contact Us - Terms and Conditions - Privacy Policy

版权所有,未名空间(mitbbs.com),since 1996