title: Why isn't Request.Url.Scheme returning HTTPS?
body: <p>I am working on a local server and I need a specific URL to be accessed through HTTPS while the rest through HTTP. I have configured Visual Studio to use IIS Express so I can use HTTP/SSL.</p>
  
  <p>I have a method like so:</p>
  
  <pre><code>[RequireHttps]
  public ActionResult SomeHttpsMethod()
  {
       //Do something
  }
  </code></pre>
  
  <p>In another place I have:</p>
  
  <pre><code>var url = Url.Action("SomeHttpsMethod", "SomeHttpsController", new { someParams }, Request.Url.Scheme);
  </code></pre>
  
  <p>If I access my site using <code>HTTP</code> i.e. <code>http://localhost:httpport</code>, I still get <code>HTTP</code> returned from <code>Request.Url.Scheme</code> instead of <code>HTTPS</code>. Is that how it is meant to work? </p>
  
  <p>Obviously if I accesss my site using <code>HTTPS</code> i.e. to begin with i.e. <code>https://localhost:sslport</code>, <code>HTTPS</code> is returned (which is what I want) but I don't want to have to access the site in <code>HTTPS</code>, only for that particular URL/controller method.</p>