cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: write different files to disk from an multipart/x-mixed-replace; boundary=END

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 1 Jul 2015 11:25:39 +0200 (CEST)

On Tue, 30 Jun 2015, Yaron Illouz wrote:

> Hi am trying to get multiple files from a http post reponse.

First: the curl-library is really the better mailing list for libcurl
questions.

> I know how to write the response as one file but I don't know how to write
> it as different files to disk.

You get all the contents sent to your write callback. You can decide exactly
how to handle the data and to how many files to write it to.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2015-07-01