Added https support.
Used port instead of port.
Used domain instead of httpbase