Replacing createClient with http.request to remove deprecation warning