Adding capability to pass a host name with port and check if it's encrypted

With this pull request users can inform a different hostname with a different port and say if the url is encrypted