ESP32 - HTTPS Request
ESP32 can play a role as a web client to make HTTPS to a web server. Web Server can be a website, Web API or REST API, Web service ...
HTTP vs HTTPS
From a web client point of view, HTTPS are the same as HTTP, except that HTTPS encrypt data between client end server. This makes HTTPS secure.
Therefore, to learn about HTTPS, We just need to learn about HTTP first, and then lean how to encrypt data.
Learn about HTTP
- See ESP32 - HTTP Request tutorial
Learn how to encrypt data in HTTPS
Fortunately, It is easy to modify HTTP code to make HTTPS code. It just needs to modify one line of code. In HTTP code, find the code lines specified in the table below, replace by the corresponding HTTPS code.
|HTTP Code||HTTPS Code|
|client.connect(server, 80)||client.connectSSL(server, 443)|
※ NOTE THAT:
Note that this tutorial is incomplete. We will post on our Facebook Page when the tutorial is complete. Like it to get updated.