Added support for https protocol