Invoking REST services using the RxCurl library
The RcCurl library, written by Kirk Shoop, originally had support only for the GET and POST verbs. The Twitter analysis app only warrants that. The authors of this book have added support for the PUT and DELETE verbs. The following code snippets help us to support the PUT verb. You can refer to the source of rxcurl.h to see the necessary changes to support additional verbs:
#include <iostream> #include <stdio.h> #include <iostream> #include <stdio.h> #include <stdlib.h> #include <map> #include <chrono> using namespace std; using namespace std::chrono; //////////////////////// // include Curl Library and // Rxcpp library // #include <curl/curl.h> #include <rxcpp/rx.hpp> using namespace rxcpp; using namespace rxcpp::rxo; using namespace rxcpp::rxs; ////////////////////////// // include the modified rxcurl library from // Kirk Shoop's Twitter Analysis app // #include...