The Request Object defines a Property called IsSecureConnection, that will indicate whether http:// or https:// has been used.