This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |