#include <iostream>
#include <string>
#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;
}
-
Notifications
You must be signed in to change notification settings - Fork 1
Single header cURL wrapper for C++ around libcURL
License
ferhatgec/curl4cpp
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Single header cURL wrapper for C++ around libcURL
Topics
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published