add http client code