curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Long poll

From: Alan Jones via curl-library <curl-library_at_cool.haxx.se>
Date: Thu, 28 May 2020 14:57:56 +0000 (UTC)

Hello,
I am using libcurl to interface to Microsoft's Exchange Web Services in conjunction with gSoap. One of the services, Subscribe for Notifications, sends a request for notifications and the connection is left open. Thereafter the server sends a 1K HTML message whose body terminates with </Envelope> every 45s. To handle this I am using a curl_multi_wait inside a loop that terminates when the curl write callback detects the trailing </Envelope>. However I am wondering if there is a way I can leverage Curl's own parser to detect the complete message itself and only call the write callback once?
Alan

-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2020-05-28