updated proxy to use http.request