fix http.post passing the wrong arguments to http.request