check url for http or https