Factored out getHttp()