Part of the Getting Started with ESP8266 + Arduino series.
In my ESP8266/Arduino/PlatformIO HTTPS demo project, I make two consecutive HTTPS requests, to different sites, from the same function. You can see the code in question here.
I'm doing this work using the ESP8266HTTPClient library, which is …