PositiveGuy
PositiveGuy

Reputation: 47743

Check Whether Incoming Call to Web Service is over Https

We want to make sure any calls that are coming into our .asmx are https. I'm not sure how/where to check that. In our asmx I assume I can check the HttpContext?

Upvotes: 3

Views: 408

Answers (1)

Cᴏʀʏ
Cᴏʀʏ

Reputation: 107526

Check this property:

HttpContext.Current.Request.IsSecureConnection

Upvotes: 6

Related Questions