Frank
Frank

Reputation:

Determine if site is running HTTPS

What would be the easiest way to see if the site is in HTTPS?

I am using c#

Upvotes: 0

Views: 614

Answers (1)

CodeLikeBeaker
CodeLikeBeaker

Reputation: 21312

You can use:

HttpContext.Current.Request.IsSecureConnection

Upvotes: 9

Related Questions