|
|
cURL Mailing List Monthly Index Single Mail
curl-library Archives
Re: Put request with postfields libcurl c++
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 2 Nov 2009 09:53:10 +0100 (CET)
On Mon, 2 Nov 2009, Zaid Amir wrote:
> size_t readTextCallback(void* ptr,size_t size, size_t nmemb, void* stream)
> string* strptrdst = static_cast<string*>(ptr);
Don't get sucked up by all the fancy C++isms you can make in a program. Try to
The read callback is supposed to copy data to the buffer, data that libcurl is
'ptr' points to the buffer. size*nmemb is the (maximum) amount of data you
Just copy data to the buffer in every invoke until there is no more data to
A slightly different way to do PUT with a fixed string, is to instead: use
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2009-11-02 These mail archives are generated by hypermail. |
Page updated November 16, 2009.
web site info