Fixed bug in HttpClient that meant the path wasn't being generated corre...

...ctly for paths that contain port numbers.