Updated http client code.