Skip to content

C++ Requests Example: quickly build networked applications

Notifications You must be signed in to change notification settings

d-yano/cpr-example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C++ Requests Example

Travis Build Status Appveyor Build Status

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.

About

C++ Requests Example: quickly build networked applications

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CMake 86.9%
  • C++ 13.1%