D*****n 发帖数: 363 | 1 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 发帖数: 21638 | 2 if the uri is start with http then it's http
if the uri is start with https then it's https
【在 D*****n 的大作中提到】 : 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?
|
g***y 发帖数: 27 | 3 Request.Url.StartsWith("https") |
c**d 发帖数: 579 | 4 what if the secure connection is using http://site_name:443
Should check Request.IsSecureConnection instead |
D*****n 发帖数: 363 | 5 cool, thanks everyone.
【在 c**d 的大作中提到】 : what if the secure connection is using http://site_name:443 : Should check Request.IsSecureConnection instead
|