curl-library
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:59:12 +0200 (CEST)
Date: Wed, 1 Jul 2015 11:59:12 +0200 (CEST)
On Wed, 1 Jul 2015, Yaron Illouz wrote:
> How do I write the file that arrive in the answer as different files? Do I
> neeed to split according to the boundary myself in the WRITEFUNCTION?
Correct. libcurl currently offers no particular help to parse and split
multipart responses.
> And how do I get each filename with the file content?
You parser need to extract that.
There may of course exist libraries/tools that can help you with it.
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2015-07-01