Tried to add http request function to predictive modeling controller, not sure if this is correct