I tried the example from WGET$ help by ESP8266 v1.49. Text of the program:
Code: [Local Link Removed for Guests]
' do an HTTPS GET request
a$=WGET$("https://jsonplaceholder.typicode.com/comments?id=1&id=4")
PAUSE 5000
print a$
wlog a$
ONWGETASYNC answer_done
WGETASYNC("jsonplaceholder.typicode.com/comments?id=1&id=4", 443)
Wait
answer_done:
b$=WGETRESULT$
Print b$
wlog b$
Return
Connection Failed
<html>
<head><title>400 The plain HTTP request was sent to HTTPS port</title></head>
<body>
<center><h1>400 Bad Request</h1></center>
<center>The plain HTTP request was sent to HTTPS port</center>
<hr><center>cloudflare</center>
</body>
</html>
Sometimes ESP266 reboots due to an exception.
Exception (3):
epc1=0x40101927 epc2=0x00000000 epc3=0x00000000 excvaddr=0x4005fedc depc=0x00000000