How to implement this using PHP?
Task.
There is a Client, Server1, Server2. Client POST sends a request with data to Server1. Server1 processes the data and sends a subquery to Server2 (and at the same time it is not responding to Server1 yet). After receiving a response from Server2, Server1 generates a response and sends it to the Client.
Preferred sample code.