refactoring for sync sslterm httpsredirect