Replaced CURL Post call to HTTP API call