Use non-deprecated object for HTTP