curl-library
Re: how to pass curl_formadd() metadata around?
From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Mon, 21 Aug 2006 19:52:00 -0700
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 movedReceived on 2006-08-22