cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: clarifying multipart response with libcurl

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 29 Nov 2007 16:49:17 +0100 (CET)

On Thu, 29 Nov 2007, Aleksandar Lazic wrote:

> I need to parse this multipart response.

[---]

> I plan to use the CURLOPT_WRITEFUNCTION from libcurl to parse the response
> and get the datas into my program.
>
> Is there a better way to handle multipart response with libcurl?!

Nope, as libcurl doesn't meddle with the contents it just delivers it to you.
It even has no clues what a multipart response is or when it gets one.

I wrote a multipart parser in C a short while ago so I know it can be a bit
tricky to get the details right.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2007-11-29