☆─────────────────────────────────────☆
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
☆─────────────────────────────────────☆
gravy (不过...) 于 (Wed Jan 24 10:03:55 2007) 提到:
b****u 发帖数: 1027
2
Server Variable "HTTP_PROTOCOL"
a9 发帖数: 21638
3
what if the secure connection is using http://site_name:443
Should check Request.IsSecureConnection instead
不是说用443就是SSL。
【在 l*s 的大作中提到】 : ☆─────────────────────────────────────☆ : 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 : : ☆─────────────────────────────────────☆