<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" media="screen" href="/styles/xslt/rss.xslt"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:c9="http://channel9.msdn.com">
<channel>
	<title>Channel 9 Forums - Tech Off - https but request.isSecureConnection returns false</title>
	<atom:link rel="self" type="application/rss+xml" href="http://channel9.msdn.com/Forums/rss"></atom:link>
	<image>
		<url>http://mschnlnine.vo.llnwd.net/d1/Dev/App_Themes/C9/images/feedimage.png</url>
		<title>Channel 9 Forums - Tech Off - https but request.isSecureConnection returns false</title>
		<link>http://channel9.msdn.com/Forums</link>
	</image>
	<description>Channel 9 keeps you up to date with the latest news and behind the scenes info from Microsoft that developers love to keep up with. From LINQ to SilverLight – Watch videos and hear about all the cool technologies coming and the people behind them.</description>
	<link>http://channel9.msdn.com/Forums</link>
	<language>en</language>
	<pubDate>Sat, 25 May 2013 22:53:23 GMT</pubDate>
	<lastBuildDate>Sat, 25 May 2013 22:53:23 GMT</lastBuildDate>
	<generator>Rev9</generator>
	<c9:totalResults>9</c9:totalResults>
	<c9:pageCount>-9</c9:pageCount>
	<c9:pageSize>-1</c9:pageSize>
	<item>
		<title>Tech Off - https but request.isSecureConnection returns false</title>
		<description><![CDATA[<p>I have an aspx page which is checking Request.IsSecureConnection to ensure it is true, if not it does a redirect to the the secure page at <a href="https://www.domain.com/page.aspx">https&#58;&#47;&#47;www.domain.com&#47;page.aspx</a>.</p>
<p>The server has an SSL cert installed for the domain, and the browser shows the padlock icon.</p>
<p>I have created an empty aspx file, that just prints the return value of Request.IsSecureConnection and it is still false, so there is no other content coming from a standard http request.</p>
<p>Does anyone know why it might always return false?</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/474086-https-but-requestisSecureConnection-returns-false/474086#474086</link>
		<pubDate>Tue, 16 Jun 2009 21:21:21 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/474086-https-but-requestisSecureConnection-returns-false/474086#474086</guid>
		<dc:creator>webmonkey</dc:creator>
		<slash:comments>9</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/webmonkey/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - https but request.isSecureConnection returns false</title>
		<description><![CDATA[<p>Other guy has a good solution to this issue before:</p>
<p><a href="http://www.leastprivilege.com/PartiallySSLSecuredWebAppsWithASPNET.aspx">http://www.leastprivilege.com/PartiallySSLSecuredWebAppsWithASPNET.aspx</a></p>
<p><a href="http://www.pluralsight.com/community/blogs/keith/archive/2009/01/17/sslhelper-get-help-running-a-partial-ssl-website-in-asp-net.aspx">http://www.pluralsight.com/community/blogs/keith/archive/2009/01/17/sslhelper-get-help-running-a-partial-ssl-website-in-asp-net.aspx</a></p>
<p>Zhou Yong</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/474086-https-but-requestisSecureConnection-returns-false/bdfd73b22a8e412897039deb0006c683#bdfd73b22a8e412897039deb0006c683</link>
		<pubDate>Wed, 17 Jun 2009 09:20:19 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/474086-https-but-requestisSecureConnection-returns-false/bdfd73b22a8e412897039deb0006c683#bdfd73b22a8e412897039deb0006c683</guid>
		<dc:creator>Zhou Yong</dc:creator>
		<slash:comments>9</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/footballism/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - https but request.isSecureConnection returns false</title>
		<description><![CDATA[<p><blockquote><div class="quoteUser">footballism said:</div><div class="quoteText">
<p>Other guy has a good solution to this issue before:</p>
<p><a href="http://www.leastprivilege.com/PartiallySSLSecuredWebAppsWithASPNET.aspx">http://www.leastprivilege.com/PartiallySSLSecuredWebAppsWithASPNET.aspx</a></p>
<p><a href="http://www.pluralsight.com/community/blogs/keith/archive/2009/01/17/sslhelper-get-help-running-a-partial-ssl-website-in-asp-net.aspx">http://www.pluralsight.com/community/blogs/keith/archive/2009/01/17/sslhelper-get-help-running-a-partial-ssl-website-in-asp-net.aspx</a></p>
<p>Zhou Yong</p>
</div></blockquote>
<p>Hey, you're back. I last saw you in... 2005 was it?</p></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/474086-https-but-requestisSecureConnection-returns-false/d7fe75757c1b49a9952c9deb0006c6ab#d7fe75757c1b49a9952c9deb0006c6ab</link>
		<pubDate>Wed, 17 Jun 2009 11:35:04 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/474086-https-but-requestisSecureConnection-returns-false/d7fe75757c1b49a9952c9deb0006c6ab#d7fe75757c1b49a9952c9deb0006c6ab</guid>
		<dc:creator>W3bbo</dc:creator>
		<slash:comments>9</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/W3bbo/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - https but request.isSecureConnection returns false</title>
		<description><![CDATA[<p>Bump.</p>
<p>Anyone?</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/474086-https-but-requestisSecureConnection-returns-false/eae700a079334a3792219deb0006c6d1#eae700a079334a3792219deb0006c6d1</link>
		<pubDate>Thu, 18 Jun 2009 19:53:44 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/474086-https-but-requestisSecureConnection-returns-false/eae700a079334a3792219deb0006c6d1#eae700a079334a3792219deb0006c6d1</guid>
		<dc:creator>webmonkey</dc:creator>
		<slash:comments>9</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/webmonkey/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - https but request.isSecureConnection returns false</title>
		<description><![CDATA[<p><blockquote><div class="quoteUser">webmonkey said:</div><div class="quoteText">
<p>Bump.</p>
<p>Anyone?</p>
</div></blockquote>
<p>Are you sure its actually secure at the web server? and maybe not being upgraded at an internal proxy? or that you are absoluetely sure its installed right?</p></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/474086-https-but-requestisSecureConnection-returns-false/c1d6dba5efa04abe993e9deb0006c6f8#c1d6dba5efa04abe993e9deb0006c6f8</link>
		<pubDate>Thu, 18 Jun 2009 20:15:44 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/474086-https-but-requestisSecureConnection-returns-false/c1d6dba5efa04abe993e9deb0006c6f8#c1d6dba5efa04abe993e9deb0006c6f8</guid>
		<dc:creator>stevo_</dc:creator>
		<slash:comments>9</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/stevo_/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - https but request.isSecureConnection returns false</title>
		<description><![CDATA[<p><blockquote><div class="quoteUser">W3bbo said:</div><div class="quoteText">
<blockquote>
<div class="quoteUser">footballism said:</div>
<div class="quoteText">*snip*</div>
</blockquote>
<p>Hey, you're back. I last saw you in... 2005 was it?</p>
</div></blockquote>
<p>Yup, I am back for fun. Good to see you here again:)</p>
<p>Zhou Yong</p></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/474086-https-but-requestisSecureConnection-returns-false/03ebf76edb7f455a81679deb0006c71f#03ebf76edb7f455a81679deb0006c71f</link>
		<pubDate>Fri, 19 Jun 2009 07:29:21 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/474086-https-but-requestisSecureConnection-returns-false/03ebf76edb7f455a81679deb0006c71f#03ebf76edb7f455a81679deb0006c71f</guid>
		<dc:creator>Zhou Yong</dc:creator>
		<slash:comments>9</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/footballism/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - https but request.isSecureConnection returns false</title>
		<description><![CDATA[<p><blockquote><div class="quoteUser">footballism said:</div><div class="quoteText">
<blockquote>
<div class="quoteUser">W3bbo said:</div>
<div class="quoteText">*snip*</div>
</blockquote>
<p>Yup, I am back for fun. Good to see you here again:)</p>
<p>Zhou Yong</p>
</div></blockquote>
<p>Hey!&nbsp; long time no see (so to speak)</p>
<p><img src='http://ecn.channel9.msdn.com/o9/content/images/emoticons/emotion-2.gif' alt='Big Smile' /></p></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/474086-https-but-requestisSecureConnection-returns-false/5ab589f998a74bdbbfb39deb0006c746#5ab589f998a74bdbbfb39deb0006c746</link>
		<pubDate>Fri, 19 Jun 2009 12:58:47 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/474086-https-but-requestisSecureConnection-returns-false/5ab589f998a74bdbbfb39deb0006c746#5ab589f998a74bdbbfb39deb0006c746</guid>
		<dc:creator>figuerres</dc:creator>
		<slash:comments>9</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/figuerres/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - https but request.isSecureConnection returns false</title>
		<description><![CDATA[<p>So, this may be a bit old to give you an answer, but here's something I found.</p>
<p>&nbsp;</p>
<p>I am helping my wife write a website that uses Network Solutions Shared Hosting (though this also seems to happen with other shared hosting solutions).&nbsp; What seems to be happening is that the way they have it set up, there is one IP shared among many sites
 (all the sharing hosts on one server) that points to a proxy device.&nbsp; This translates all incoming requests to the proper application based on the hostname, but it sends the request to your site with http:// no matter what.&nbsp; Any SSL is done between the client
 and the proxy.&nbsp; So your application code never sees https:// even if that's how the client requested it.&nbsp; Your code just gets <a href="http://whatever.thisisapain.com. ">http&#58;&#47;&#47;whatever.thisisapain.com.&#160;</a> A very quick and dirty solution I cam up with was to put the following in my global.asax.</p>
<p>&nbsp;</p>
<p>protected void Application_BeginRequest(Object sender, EventArgs e)<br />&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (Request.QueryString[&quot;secure&quot;] == null &amp;&amp; !Request.ServerVariables[&quot;SERVER_NAME&quot;].Contains(&quot;localhost&quot;))<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if(Request.RawUrl.Contains(&quot;?&quot;))<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Response.Redirect(&quot;https://&quot; &#43; Request.ServerVariables[&quot;SERVER_NAME&quot;]<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#43; Request.RawUrl &#43; &quot;&amp;secure=true&quot;);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; else<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Response.Redirect(&quot;https://&quot; &#43; Request.ServerVariables[&quot;SERVER_NAME&quot;]<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#43; Request.RawUrl &#43; &quot;?secure=true&quot;);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br />&nbsp;&nbsp;&nbsp; }</p>
<p>&nbsp;</p>
<p>Basically, this checks for a querystring parameter called &quot;secure&quot;, and if it's not there, redirects to https://REQUEST?secure=true or https://REQUEST&amp;secure-true if the request already had a querystring parameter.&nbsp; It is not a great solution, because unless
 you change all of your links and redirects to append the secure parameter, they will get an extra redirect for every new page they go to.&nbsp; However, the secure parameter is preserved in a postback, so that still works.</p>
<p>&nbsp;</p>
<p>There is probably a better solution, and ultimately, the best solution would be if these providers didn't do this, but I can't do anything about that I guess.</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/474086-https-but-requestisSecureConnection-returns-false/9aded3cea6364d62af239deb0006c791#9aded3cea6364d62af239deb0006c791</link>
		<pubDate>Sat, 31 Jul 2010 22:06:19 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/474086-https-but-requestisSecureConnection-returns-false/9aded3cea6364d62af239deb0006c791#9aded3cea6364d62af239deb0006c791</guid>
		<dc:creator>Nathan Hartzell</dc:creator>
		<slash:comments>9</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/nyasara/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - https but request.isSecureConnection returns false</title>
		<description><![CDATA[<p><blockquote><div class="quoteUser">nyasara said:</div><div class="quoteText">
<p>So, this may be a bit old to give you an answer, but here's something I found.</p>
<p>&nbsp;</p>
<p>I am helping my wife write a website that uses Network Solutions Shared Hosting (though this also seems to happen with other shared hosting solutions).&nbsp; What seems to be happening is that the way they have it set up, there is one IP shared among many sites
 (all the sharing hosts on one server) that points to a proxy device.&nbsp; This translates all incoming requests to the proper application based on the hostname, but it sends the request to your site with http:// no matter what.&nbsp; Any SSL is done between the client
 and the proxy.&nbsp; So your application code never sees https:// even if that's how the client requested it.&nbsp; Your code just gets
<a href="http://whatever.thisisapain.com.&nbsp;">http://whatever.thisisapain.com.&nbsp;</a> A very quick and dirty solution I cam up with was to put the following in my global.asax.</p>
<p>&nbsp;</p>
<p>protected void Application_BeginRequest(Object sender, EventArgs e)<br />&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (Request.QueryString[&quot;secure&quot;] == null &amp;&amp; !Request.ServerVariables[&quot;SERVER_NAME&quot;].Contains(&quot;localhost&quot;))<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if(Request.RawUrl.Contains(&quot;?&quot;))<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Response.Redirect(&quot;https://&quot; &#43; Request.ServerVariables[&quot;SERVER_NAME&quot;]<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#43; Request.RawUrl &#43; &quot;&amp;secure=true&quot;);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; else<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Response.Redirect(&quot;https://&quot; &#43; Request.ServerVariables[&quot;SERVER_NAME&quot;]<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#43; Request.RawUrl &#43; &quot;?secure=true&quot;);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br />&nbsp;&nbsp;&nbsp; }</p>
<p>&nbsp;</p>
<p>Basically, this checks for a querystring parameter called &quot;secure&quot;, and if it's not there, redirects to https://REQUEST?secure=true or https://REQUEST&amp;secure-true if the request already had a querystring parameter.&nbsp; It is not a great solution, because unless
 you change all of your links and redirects to append the secure parameter, they will get an extra redirect for every new page they go to.&nbsp; However, the secure parameter is preserved in a postback, so that still works.</p>
<p>&nbsp;</p>
<p>There is probably a better solution, and ultimately, the best solution would be if these providers didn't do this, but I can't do anything about that I guess.</p>
</div></blockquote>
<p>I think you can ask them&nbsp;if the proxy server will added any request headers indicating it has been in SSL or not. It's probably configurable setting on zones of the proxy, and&nbsp;possibly&nbsp;already configured that way.</p>
<p>&nbsp;</p>
<p>It doesn't hurt to ask.</p></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/474086-https-but-requestisSecureConnection-returns-false/b420dbb8d7c24fd29df59deb0006c7c1#b420dbb8d7c24fd29df59deb0006c7c1</link>
		<pubDate>Mon, 02 Aug 2010 07:05:46 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/474086-https-but-requestisSecureConnection-returns-false/b420dbb8d7c24fd29df59deb0006c7c1#b420dbb8d7c24fd29df59deb0006c7c1</guid>
		<dc:creator>cheong</dc:creator>
		<slash:comments>9</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/cheong/Discussions/RSS</wfw:commentRss>
	</item>
</channel>
</rss>