cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Server-sent events with libcurl

From: amit paliwal <amit.ambitions_at_gmail.com>
Date: Tue, 28 Dec 2010 13:42:57 -0500

On Tue, Dec 28, 2010 at 1:31 PM, Daniel Stenberg <daniel_at_haxx.se> wrote:

> On Tue, 28 Dec 2010, amit paliwal wrote:
>
> Server will send SSE on top of HTTP response message and the Client will
>> parse that SSE and from there I need to reply to the server, for e.g. some
>> status code like event received properly. This reply need to be sent in HTTP
>> GET message, so one particular scenario is receiving the HTTP response
>> message for SSe and sending reply of SSE in HTTP GET. . I agree that this
>> looks kind of opposite, but this is really what I need to implement and I
>> need your input whether it can be achieved by libcurl or not? Do I need to
>> tweak the code of the library for my custom use?
>>
>
> Sending a HTTP GET with libcurl doesn't sound like "custom use" to me. It
> sounds like one of the most commonly used features it has...

Reply: it is right Daniel, but my question is not just to send GET, my
question is receiving asynchronous HTTP responses containing SSE and then
replying to it by HTTP GET and not just sending HTTP GET and also HTTP GET
to contain a payload. normal flow is send HTTP GET and receive HTTP
response, my requirement is receive HTTP response and send HTTP GET and that
is why I said it is reverse scenario. I hope I am clear this time?

>
>
> --
>
> / daniel.haxx.se
> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/list/listinfo/curl-library
> Etiquette: http://curl.haxx.se/mail/etiquette.html
>

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