Using non-deprecated HTTP client machinery