Fix for Bug NMS-6916

After upgrading HttpClient, the host header always contains the port
which is a problem for Microsoft IIS.