I am looking for a client software that will run on a Unix system to do long-polling with multiple requests in a single http pipeline.
Basically we need to issue several long-polling GET requests to a server. All the requests need to be done within a single HTTP pipeline.
The client needs to have N requests open at any given time, where N > 1.
The server will respond either with a 200 OK or 204 No Content.
In case of a 200 OK, the response needs to be piped into a new process.
This can be easily implemented using PHP. The HttpRequestPool can be used to build a custom client doing just that. Also see How can I make use of HTTP 1.1 persistent connections and pipelining from PHP?
With Go it’s also fairly easy, if you create the connection yourself, you just have to send all the requests and then you can read responses sequentially, and it will send it all through one http pipelined connection.
You should do some more error checking though.