allow switch https protocol to http regarding ssl parameter

allow switching https protocol to http regarding ssl option