Improve getHttp method