Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
C

curlcpp

> 数据库
Open source

An object oriented C++ wrapper for CURL (libcurl)

675 stars0 likes3 views
WebsiteGitHub

About

An object oriented C++ wrapper for CURL (libcurl)

curlcpp

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/

Donate

Help me to improve this project!

Compile and link manually

Standalone (static library)

bash
cd build
cmake ..
make

Standalone (dynamic/shared library)

bash
cd build
cmake .. -DBUILD_SHARED_LIBS=SHARED
make

Note: cURL >= 7.86.0 is required.

When linking curlcpp to your application don't forget to also link curl. Example:

bash
g++ -std=c++11 example.cpp -I/usr/local/include/curlcpp/ -lcurlcpp -lcurl 

Submodule

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)

Install via Homebrew

curlcpp is now available also via homebrew package manager:

bash
brew install curlcpp

Examples

Here 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:

  • Simple request

…

``

  • Store response in a file

And if we would like to put the returned content in a file? Nothing easier than:

…

``

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

C++c-plus-pluscppcross-platformcurl

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category数据库
PricingOpen source

> Related tools

P
PostgreSQL
功能强大的开源关系型数据库
R
Redis
内存数据结构存储,常用作缓存与队列
M
MySQL
广泛使用的开源关系型数据库