Accept both http or https urls