Supporting http and https