http and rest client