add https protocol support