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

Pubblicato il: 30 marzo 2023
sul canale di: 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...


In questa pagina del sito puoi guardare il video online C++ Programming on Linux - Libcurl sending HTTPS Get/HTTPS Post Request della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Hui Yuan 30 marzo 2023, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 1,571 volte e gli è piaciuto 11 spettatori. Buona visione!