and try this simple snippet
https://github.com/espruino/Espruino/blob/master/targets/esp32/tests/get_web_page_https.js
@MaBe started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
and try this simple snippet
https://github.com/espruino/Espruino/blob/master/targets/esp32/tests/get_web_page_https.js