https://github.com/ferhatgec/curl4cpp
Single header cURL wrapper for C++ around libcURL
https://github.com/ferhatgec/curl4cpp
cpp curl curl-library curl4cpp get header single-header
Last synced: 2 months ago
JSON representation
Single header cURL wrapper for C++ around libcURL
- Host: GitHub
- URL: https://github.com/ferhatgec/curl4cpp
- Owner: ferhatgec
- License: mit
- Created: 2021-07-31T18:10:09.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-06-12T23:21:57.000Z (about 3 years ago)
- Last Synced: 2025-03-28T07:01:39.363Z (3 months ago)
- Topics: cpp, curl, curl-library, curl4cpp, get, header, single-header
- Language: C++
- Homepage:
- Size: 54.7 KB
- Stars: 13
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# curl4cpp
## single header cURL wrapper for C++ around libcURL.### An example:
```cpp
#include
#include
#include "curl4.hpp"int main() {
curl4::CURL4 init = curl4::easy::init();{
std::string val;init.setopt(CURLOPT_URL, "https://raw.githubusercontent.com/ferhatgec/bufsize/master/example.cpp");
init.setopt(CURLOPT_WRITEFUNCTION, curl4::easy::writefunc);
init.setopt(CURLOPT_WRITEDATA, &val);
CURLcode res = curl4::easy::perform(init);std::cout << val << '\n';
}return 0;
}
```### curl4cpp licensed under the terms of MIT License.