integrated http/https switch for server access