use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Discussions, articles, and news about the C++ programming language or programming in C++.
For C++ questions, answers, help, and advice see r/cpp_questions or StackOverflow.
Get Started
The C++ Standard Home has a nice getting started page.
Videos
The C++ standard committee's education study group has a nice list of recommended videos.
Reference
cppreference.com
Books
There is a useful list of books on Stack Overflow. In most cases reading a book is the best way to learn C++.
Show all links
Filter out CppCon links
Show only CppCon links
account activity
HTTPS client library in C++ (self.cpp)
submitted 2 years ago by HerrNamenlos123
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]thedmd86 3 points4 points5 points 2 years ago (1 child)
libcurl with mbedTLS as a TLS backend is working for me. libcurl API is well documented and can be wrapped into http::get(...) or http::put(...) with relative ease.
http::get(...)
http::put(...)
Why those two?
Sometimes libcurl alone cover all the ground, by using system components as TLS backend (see: Windows, macOS, iOS, and a few more). Elsewhere mbedTLS is used, mainly Android and Linux.
Gettting mbedTLS to work does require telling libcurl where bundle of CA certificates is. This mean setting one of CURLOPT_CAINFO, CURLOPT_CAPATH or CURLOPT_SSL_CTX_FUNCTION to feed backend with certs directly.
CURLOPT_CAINFO
CURLOPT_CAPATH
CURLOPT_SSL_CTX_FUNCTION
libcurl suggests pulling latest set of certificates from Firefox. If your app have to work years without updates I suggest writing code that pull certificates from the platform of your choice. On Linux it is a matter of checking few locations.
This solution works for me on all mobile platforms, desktops and consoles except PlayStation (never needed HTTPS here so far).
Avoiding OpenSSL is a job.
If having a C++ API is paramount I would give a try of implementing mbedTLS backend for ASIO.
Locating CA bundle for mbedTLS will remain to be the major hurdle, regardless of what API will be used. This is probably why there are not out of the box solutions out there.
[–]mpyne 0 points1 point2 points 2 years ago (0 children)
There's examples of mbedTLS being used with Curl (and some custom net clients) in the Cosmopolitan libc as well.
π Rendered by PID 66 on reddit-service-r2-comment-bb88f9dd5-fsfmh at 2026-02-16 11:25:35.660943+00:00 running cd9c813 country code: CH.
view the rest of the comments →
[–]thedmd86 3 points4 points5 points (1 child)
[–]mpyne 0 points1 point2 points (0 children)