cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-library Mailing List Archives

Re: how to pass curl_formadd() metadata around?

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Mon, 21 Aug 2006 19:52:00 -0700

On Mon, Aug 21, 2006 at 10:35:34PM -0400, Mohun Biswas wrote:
> I've also thought of sprintf-ing these pairs into strings, making a list
> of them with curl_slist_append(), then storing the slist in the handle
> using CURLOPT_PRIVATE. Unfortunatelythere's no documented way of
> traversing an slist.

Why bother with slists if you're just going to use it with CURLOPT_PRIVATE,
the contents of which curl happily ignores? Just create your own struct
containing file descriptor, mmap pointer, etc. and set that with
CURLOPT_PRIVATE.

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
Received on 2006-08-22

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET