I have an IIS7 ASP.NET webserver bound to both http and https.
So, I type in http://test35-control.musac.school.nz into Firefox 7.0.1.
In the server logs I immediately see
2011-11-09 04:57:16 130.123.148.35 GET / – 443 – 130.123.96.22
Mozilla/5.0+(Windows+NT+6.1;+WOW64;+rv:7.0.1)+Gecko/20100101+Firefox/7.0.1
200 0 0 123
In Firebug, Net panel [with persist selected] shows the first request as
https://test35-control.musac.school.nz/
So, Firefox seems to ignore the fact that I’ve asked for http and go to the https site instead. Why is that?
Probably answered on the net, but there are too many generic terms for googling…
The same seems to happen in all other browsers I have on hand too (IE8, Chrome, Opera).
OK, it turns out it’s not doing that; it’s just that:
Our system is doing the redirect using a custom 403 error page with a server-side 302 redirect written in Asp.net. This was done 2 years ago by someone who has now left, and no-one could remember 🙂
The application is set to require SSL (in IIS manager, SSL settings), to force the 403 error when accessing via HTTP.
We have bindings for http and https.
Other things that might have been confusing me:
Well that was interesting.
** IIS seems to log the redirect requests in a different order sometimes, e.g.
2