cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: How to PUT data char buffer??

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Wed, 24 Dec 2008 08:17:30 -0800

On Wed, Dec 24, 2008 at 05:47:09PM +0530, tamal.biswas_at_wipro.com wrote:
> Hi,
> I am able to pass function pointer to the callback function and do the PUT
> operation. but I actually need to pass
> char buffer. How can I do the same without using any file mechanism.

Take a look at the getinmemory.c example program and do something similar,
in reverse. Basically, you just keep a pointer around which always points
to the current location in the data to send.

>>> Dan

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