WNetWrap

WinInet wrapper - tiny windows HTTPS library, no dependencies.

A tiny library using WinInet to make simple HTTP(S) requests in C++. As WinInet is a native windows library, there are no dependencies, and WNetWrap is very lightweight compared to other libraries like CPR. This repo uses MS Visual Studio for the example, but you don't need that to use WNetWrap - all you need to do is put the wnetwrap.h and wnetwrap.cpp in your project folder, and include as in the example below. Basic HTTP GET request #include <iostream> #include "wnetwrap.h" using namespace wrap; using namespace std; int main() { req my_request; //GET method and firefox user agent used by default resp my_response = HttpsRequest("https://www.example.com/", my_request); cout << my_response.text << endl; //very basic html parser }

Explore By Topic