cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Handling MultiPart response in CURL

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Tue, 22 Jul 2014 00:04:34 +0200

Please don't top post.

On Mon, Jul 21, 2014 at 03:55:13PM +0530, Prashant Pharate wrote:
> at CURL side I will get zip file like -o file.zip

Is there supposed to be a question in your latest two messages, because I don't
see one.

>
> On Mon, Jul 21, 2014 at 3:54 PM, Prashant Pharate <prashantpharate_at_gmail.com>
> wrote:
>
> Hi,
>
> I got solution to send multiple files in MultiPart response using zip.
>  like this
>
> ResponseBuilder response = Response.ok((Object)targetZipFile); 
> response.header("Content-Disposition", "attachment; filename=\"file.zip\
> "");
>
> Where targetZipFile is File object.
>
>
> Thanks
>
>
> On Thu, Jul 17, 2014 at 3:43 PM, Prashant Pharate <
> prashantpharate_at_gmail.com> wrote:
>
> Hi,
>
> I have requirement. I will send 2 files in
> com.sun.jersey.multipart.MultiPart BodyPart  and will add multiPart
> object in response
>
> My question is how I will get files from the response using CURL
>
> My curl version is curl 7.19.7 (powerpc-ibm-aix5.3.0.0) libcurl/7.19.7
> OpenSSL/0.9.8r
>
> Protocols: tftp ftp telnet dict http file https ftps
>
> Features: IPv6 Largefile NTLM SSL
-------------------------------------------------------------------
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 2014-07-22