Replaced http.get call with http.request call to support node 0.6.x.