Added distinction for SSL or not SSL connection in the url