I'm using curl to get a live content from a server. Each time this server gives me a specific answer, I would like to send another curl request (not a stream one).
I have tried to use curl_multi_init
but it doesn't seem to be the correct usage. curl_multi_init
allows me to send several requests at the same moment, but I don't know if I can send a request while keeping the "stream request".
What I want to do, is :
AAAAAAAAAAAAAAAAAAAAAA
B C D
Where A is the stream request which should never stop, and B, C, D several requests sent thanks to A.
Is it possible to do this thanks to PHP? Thanks a lot.