Updated to new http client