check for http and https