From: curl-library [mailto:[email protected]] On Behalf Of Ray Satiro via curl-library Sent: Monday, November 23, 2015 4:31 PM To: [email protected] Subject: Re: Libcurl comet connection On 11/23/2015 10:04 AM, john wrote: Using libcurl, is it possible to maintain a streaming HTTP (Comet) connection to a web server? Reading the Curl-Library archive, curl.haxx.se/mail/lib-2007-10/0194.html indicates this is not supported. Has anything changed since this 2007 posting? I’m new to Libcurl. I have ver 7.44 installed on Windows7 and have created a POC application to familiarize myself with elements of libcurl using the curl_multi interface. The post you're referring to does not indicate that streaming isn't supported. As it says there are numerous ways to stream. So like that post "[t]he short answer is your question isn't precise enough." Comet is a broad term. Can you be more specific? Do you know the format? Do you know the request being made to establish the push connection? Try it in curl and see what happens. [John] Ray, thanks for your reply I want to establish a connection to the host with a HTTP post. This connection needs to stay open. On a 2nd connection to the same host, I subscribe to ‘events’. The host will then periodically send ‘event’ XML data over the 1st connection. With the things I have tried with Libcurl, the initial connect seems to get closed after the initial Post/Response transfer completes. I’m currently reworking my POC to use curl_multi_socket_action.
------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.html
