now based on port number use http and https