C++ Programming on Linux - Libcurl sending HTTPS Get/HTTPS Post Request

Published: 30 March 2023
on channel: Hui Yuan
1,571
11

In previous video it has discussed new library libcurl - client side url library, the example in previous video are using libcurl to write a C++ program that sending HTTP GET and HTTP POST request.
As we know HTTP protcol is possible to get man-in--middle attack and it has been considered as not secure protcol. and many
API and project are disable of using HTTP and switched to using HTTPS protcol.

https://curl.se/libcurl/
Since there are more web security concerning and it looks like HTTPS is replacing HTTP in these days.
In this short video it will discuss how to use libcurl write a C++ program to send HTTPS GET and HTTPS POST request.

Open SSL Create Certificate command :

openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout my_private.key -out my_x509_certificate.crt
openssl dhparam -out my_dh2048.pem 2048

curl command for fetch HTTPS web page :
curl -k -v -w'\n' --get https://your_web_url/

The example code has been uploaded onto GitHub for your reference:
https://github.com/yuanhui360/CPP-Pro...


On this page of the site you can watch the video online C++ Programming on Linux - Libcurl sending HTTPS Get/HTTPS Post Request with a duration of hours minute second in good quality, which was uploaded by the user Hui Yuan 30 March 2023, share the link with friends and acquaintances, this video has already been watched 1,571 times on youtube and it was liked by 11 viewers. Enjoy your viewing!