title: Detecting https from HttpContext in .net?
body: <p>I've inherited a pile of code for a web app which contains oodles of hard-coded paths.  I've been tasked with trying to get it to run using  https://. </p>
  
  <p>Other than detecting "https://" in the URL is there a more inband way to detect that the current context is https?</p>
  
  <p>Looking for something like: </p>
  
  <p>System.Web.HttpContext.Current.Request.Url.<strong><em>Protocol.ToString()</em></strong></p>