Added HTTPS protocol support