cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Use libcurl to receive data from a web with "multipart/x-mixed-replace" type?

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Wed, 15 Nov 2006 17:21:29 -0800

On Wed, Nov 15, 2006 at 03:24:45PM +0000, cbvxc dhgsadhg wrote:
> Does anyone have any idea how I can receive data from a push web server
> (the content type is multipart/x-mixed-replace)?
>
> If libcurl cannot do this, would you recommend to me an alternative way?
>
> I'm mainly using vc++ in Windows.

You should be able to do a normal request and receive the incoming data on the
standard CURLOPT_WRITEFUNCTION. You'll have to do the MIME multipart
parsing yourself to split the reply into separate pieces, as curl won't
do that itself.

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
Received on 2006-11-16