run secure functionality when domain requires secure submission

even when hitting the insecure URL

fixes http://manage.dimagi.com/default.asp?115146