the changes are mainly to remove curl and add http_client