I have wrote a PHP script which receives a Webhook, then processes it's data, creates an array, turns the array to JSON object and finally makes a cURL POST request.
So far it was working perfectly until I had to POST a large JSON. Then it made the POST twice and logged a php-slow for "curl_exec()" line.
I really need to POST each JSON object once, so are there any ideas of how can I fix this and prevent this from happening?