prepare a migration to the non-deprecated httpclient api