Changes http.get to http.requests for POST call