Support for http and https