detect port 443 in uri and use https protocol instead of http