curl / Mailing Lists / curl-library / Single Mail


Create Serverside Streaming connection using libcurl

From: Prashant Shubham via curl-library <>
Date: Thu, 7 Mar 2019 11:57:58 +0530

Hi All, 

I want to create a streaming connection from client to server using libcurl. The client will once connect to server and keep listening for responses from the server. Stream teardown can happen when client requests.


  1. Connect to server
  2. Keep listening for responses to server. Something like while(streamOK){ //execute function when response arrives}
  3. Teardown connection when CloseStream() invoked.

I have gone through libcurl but couldn't find a clear implementation of streaming connection except rtsp one.

Server will send response/data whenever server is available with the data. http2 supports streaming I guess there must be some libcurl apis which I can use to implement this functionality. Can you please guide?

All your responses are appreciated in advance. 


Received on 2019-03-29