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

Veröffentlicht am: 30 März 2023
auf dem Kanal: 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...


Auf dieser Seite können Sie das Online-Video C++ Programming on Linux - Libcurl sending HTTPS Get/HTTPS Post Request mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Hui Yuan 30 März 2023 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 1,571 Mal angesehen und es wurde von 11 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!