Fixing problems with the httpclient.