Trying to use libcurlpp (C ++ wrapper for libcurl) to publish a form and get an answer. It all works, but I have no idea how to programmatically access the response from the curlpp :: Easy object after the http transaction has completed. Bascially:
#include <curlpp/Easy.hpp>
#include <curlpp/Options.hpp>
...
curlpp::Easy foo;
foo.setOpt( new curlpp::options::Url( "http://example.com/" ) );
foo.setOpt( new curlpp::options::Verbose( true ) );
...many other options set...
foo.perform();
When this code works because it is Verboseset to true, I see that the response gets output in STDOUT. But how do I access the full answer instead of resetting STDOUT? Curlpp :: Easy has no way to access the answer.
Many hits on Google with people asking the same question, but no answers. The curlpp mailing list is a dead zone, and the curlpp website's API section has been broken down for a year.
source
share