Manually Triggering PIWK Goal

We would like to manually trigger a goal through the HTTP Tracking API when a certain event occurs on the backend side. We have been trying the following url through a browser and it’s working fine. However when we try to submit the same request through postman or using curl, the goal is not incremented.

http://127.0.0.1:8888/piwik/piwik.php?idsite=1&rec=1&url=http%3A%2F%2F127.0.0.1%3A8888&idgoal=3&uid=4

Ok thanks, issue sorted using (curl --data “idsite=1&rec=1&url=http%3A%2F%2F127.0.0.1%3A8888&idgoal=3&uid=4&action_name=track_goal” http://127.0.0.1:8888/piwik/piwik.php)