Add option to choose between http and https protocol