Added support for SSL/https connections