cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Multi-part server push

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Wed, 10 Nov 2004 11:07:19 +0100 (CET)

On Tue, 9 Nov 2004, Gerald Dalley wrote:

> I have a server that I'm connecting to that returns an infinite stream of
> data that includes timestamps, some text messages, and jpeg images.

I suppose "infinite" was just a slight exaggeration?

> If I connect to the server using the easy interface, I get a header of the
> form: Content-Type: multipart/x-mixed-replace;boundary=--myboundary Is there
> a way to have cURL return the headers and the content of the multipart
> returned data?

You mean you want the MIME stream separated in some clever way? No, libcurl
won't do that. It will give you the HTTP headers and the HTTP body separately,
but you will have to split up the body as you see fit. libcurl has no actual
understanding of any data formats.

-- 
      Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
       Dedicated custom curl help for hire: http://haxx.se/curl.html
Received on 2004-11-10