cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Handling MultiPart response in CURL

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Fri, 18 Jul 2014 13:53:01 +0200

On Fri, Jul 18, 2014 at 04:51:27PM +0530, Prashant Pharate wrote:
> I found this http://curl.haxx.se/mail/lib-2011-11/0290.html
> and its mentioned there ibcurl does not support parsing of multipart/
> mixed responses
>
> I didn't find any link where CURL handles MultiPart response
> I execute CURL from command prompt and I am not using c or php or any other. 

Correct—libcurl doesn't and curl doesn't either. If you're not using
libcurl, you'll have to use another command-line tool to do the extraction.
You might get lucky and this will do the trick:

  curl -D - http://example/multipart | metamail -w

>>> Dan
-------------------------------------------------------------------
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-18