Optional support for https mode