curl-library
Re: Help needed with CURLOPT_HEADERDATA and friends
Date: Mon, 10 Sep 2012 22:04:28 +0200
On Mon, Sep 10, 2012 at 06:43:03PM +0100, John Doe wrote:
> I'm afraid I can't make head or tail of the sparse documentation, probably
> because I haven't been programming in C/C++ long enough to be used to such
> sparseness. But I digress.
Have you looked at http://curl.haxx.se/libcurl/? You may want to start
with the tutorial, move to some of the example programs, then dive into
the man pages.
> So far, I've cobbled together the code below, it picks up x-amzn-Requestid
> ok...... but then I can't get it to deal with the JSON error and the program
> segfaults.
Unfortunately, you haven't provided enough code for us to say what is
wrong. One obvious thing to check is that the callback functions are
all static member functions, since libcurl has no concept of C++ objects.
>>> Dan
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-09-10