C++ Requests Example
C++ Requests is a simple wrapper around libcurl inspired by the excellent Python Requests project.
This is a forkable repository that handles the boilerplate of building and integrating this library into a networked application.
Building
This project and C++ Requests both use CMake. The first step is to make sure all of the submodules are initialized:
git submodule update --init --recursive
Then make a build directory and do a typical CMake build from there:
mkdir build
cd build
cmake ..
make
This should produce a binary in the build directory called example
. Run it! If you get a response in the form of some json object, then everything worked as expected! The program you just ran is a sweet 3 liner you'll find here.
Documentation
You can get the latest documentation here. It's a work in progress, but it should give you a better idea of how to use the library than the tests currently do.
Requirements
The only explicit requirement is a C++11 compatible compiler such as clang or gcc. The minimum required version of gcc is unknown, so if anyone has trouble building this library with a specific version of gcc, do let me know.
Contributing
Please fork the parent repository and contribute back using pull requests. Features can be requested using issues. All code, comments, and critiques are greatly appreciated.
For direct contributions to the example project, you can open pull requests or issues.