parsing http/s host as url with port