CUrl refactoring
Only set the port in the Host header if it isn't the default port