selection between http and https