cURL / Mailing Lists / curl-users / Single Mail


Re: Handling MultiPart response in CURL

From: Dan Fandrich <>
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
> 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:
Received on 2014-07-18