Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Check Whether Incoming Call to Web Service is over Https

Tags:

c#

asp.net

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?

like image 736
PositiveGuy Avatar asked Feb 04 '26 13:02

PositiveGuy


1 Answers

Check this property:

HttpContext.Current.Request.IsSecureConnection
like image 83
Cᴏʀʏ Avatar answered Feb 07 '26 04:02

Cᴏʀʏ



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!