Skip to content

Instantly share code, notes, and snippets.

View ericdennisforever's full-sized avatar

Online Game Security Researcher ericdennisforever

View GitHub Profile
@ericdennisforever
ericdennisforever / Using the curl library from C++ on Windows.txt
Last active October 4, 2023 12:49
Using the curl library from C++ on Windows
Using the curl library from C++ on Windows
curl is a project containing a command line tool and a library that can be used to transfer data using a variety of protocols, including, of course, HTTP and HTTPS. The library API is written in C, but there are various C++ wrappers on top of it. One of those is curlcpp. In this article, I will show how to build these libraries for Windows with Visual Studio.
Here is an example, using curlcpp, of how to get weather data from https://openweathermap.org.
#include "curl_easy.h"
#include "curl_form.h"
#include "curl_ios.h"
#include "curl_exception.h"