distinguish between http and https