Updated deprecated method

Hi,

I just replaced the http.createClient (which was deprecated) with http.request.

bye.