I use Guzzle , which I installed through the composer and did not do something relatively simple.
Perhaps I am mistaken in the documentation , but essentially what I want to do is start a request POSTto the server and continue executing the code without waiting for a response. Here is what I have:
$client = new \GuzzleHttp\Client();
$client->post('runtime/process-instances', [
'future'=>true,
'json'=> $data
]);
die("I'm done with the call");
Now let's say that it runtime/process-instancesworks around 5mn, I won’t get the die message before these 5mn return ... When instead I want it right after the message is sent to the server.
Now I do not have access to the server, so I can not answer the server before starting the execution. I just need to ignore the answer.
Any help is appreciated.
What I tried:
$client->post()->then(function ($response) {});