An object oriented C++ wrapper for CURL (libcurl)
An object-oriented C++ wrapper for cURL tool
If you want to know a bit more about cURL and libcurl, you should go on the official website http://curl.haxx.se/
Help me to improve this project!
cd build
cmake ..
makecd build
cmake .. -DBUILD_SHARED_LIBS=SHARED
makeNote: cURL >= 7.86.0 is required.
When linking curlcpp to your application don't forget to also link curl. Example:
g++ -std=c++11 example.cpp -I/usr/local/include/curlcpp/ -lcurlcpp -lcurl When using a git submodule and CMake-buildsystem, add the following lines to your CMakeLists.txt:
ADD_SUBDIRECTORY(ext/curlcpp) # Change `ext/curlcpp` to a directory according to your setup
INCLUDE_DIRECTORIES(${CURLCPP_SOURCE_DIR}/include)curlcpp is now available also via homebrew package manager:
brew install curlcppHere are some usage examples. You will find more examples in the test folder!
Here's an example of a simple HTTP request to get google web page, using the curl_easy interface:
…``
And if we would like to put the returned content in a file? Nothing easier than:
…``
No open issues yet, or sync has not completed.