using the latest http client API