ESP32 - HTTPS Request
This tutorial instructs you how to use ESP32 to a web server, Web API, REST API, Web service ...
Introduction to HTTPS
The HTTPS are identical to HTTP, except that HTTPS securely exchanges data between client end server by encrypting the data.
Consequently, to learn about HTTPS, you just need to do two steps:
- Learn how to make HTTP request first
- Lean how to encrypt data. Fortunately, encrypting data is done by library. you just need to change a single line of code to make HTTP become HTTPS.
The below table shows the line of code that HTTPS is different from HTTP
|HTTP Code||HTTPS Code|
|client.connect(server, 80)||client.connectSSL(server, 443)|
In short, The main thing you need to learn is how to make HTTP request.