Added support for HTTPS servers