cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Server-sent events with libcurl

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 27 Dec 2010 21:26:12 +0100 (CET)

On Mon, 27 Dec 2010, amit paliwal wrote:

> Has anyone ever tried implementing server-sent events by using libcurl.
> server-sent events is a technology to push asynchronous data to HTTP Client,
> whenever server is available with the data.
>
> I am planning to do it, but in case anyone has tried it, it will be very
> helpful for me.

Well, for a server to suddenly be able to send data over HTTP to a client, the
client must be already waiting for that data to come. It means "long-polling"
so that the client basically waits for data non-stop.

> I think as standard libcurl does not support it, so I might need to do some
> changes in the library locally and compile it again.

I don't know about that. What particular details aren't supported you say?

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2010-12-27