cURL / Mailing Lists / curl-library / Single Mail


Re: HTTP get,put,delete,post

From: Daniel Stenberg <>
Date: Fri, 4 Dec 2009 12:52:33 +0100 (CET)

On Fri, 4 Dec 2009, vick wrote:

> i am trying to visualize how curl would work from a C++ app that would use
> http to interact. it seems there is too much being hidden behind the scenes
> in easy_perform.
> I mean you want to
> 1. http get some data into some buffer or holder with the ability to
> diagnose the error/recover
> 2. maybe make some changes, and post it
> 3. maybe delete something,
> 4. maybe create some resource etc

I don't see how any of that is any problem to do with libcurl.

> With the curl_write_function, it seems all you can do is recieve data
> in pieces without any visibility into errors - there's no way to say
> if it is complete from within the write_function?

The write callback has one function: to receive the data that is downloaded.

> A sample would help.

A sample of what? We have plenty examples to look at.

> Also, i may have to connect/work http with multiple servers.

libcurl works perfectly well with multiple servers too, if you ask me.

List admin:
Received on 2009-12-04