Skip to content

ferhatgec/curl4cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

curl4cpp

single header cURL wrapper for C++ around libcURL.

An example:

#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;
}

curl4cpp licensed under the terms of MIT License.

About

Single header cURL wrapper for C++ around libcURL

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy