Unable to access HTTPS URL JSON data
Posted: Sun Mar 10, 2019 11:51 am
Hi there
I need help urgently.
I tried to access JSON text on a HTTPS URL. Can't do so on HTTP. I used the template code in the examples section of the Arduino IDE file tab (ESP8266WiFi- HTTPSREQUEST).
i use client.readStringUntil(\n); to read the text.
After execution, it takes a while to get the text response. And when i do, part of the JSON text gets printed in the Serial monitor, followed quite shortly by a soft WDT reset.
I get some stack dump, and then it hangs...
Here is the header i get
X-Authentication-Time: 1ms
Cache-Control: max-age=60
Expires: Sun, 10 Mar 2019 12:53:54 +0000
X-Content-Type-Options: nosniff
X-Response-Time: 141.798ms
Vary: Accept-Encoding
If anyone has a proper functional template to read JSON text from a HTTPS URL via GET request , please post it below. I'd greatly appreciate your help!
I need help urgently.
I tried to access JSON text on a HTTPS URL. Can't do so on HTTP. I used the template code in the examples section of the Arduino IDE file tab (ESP8266WiFi- HTTPSREQUEST).
i use client.readStringUntil(\n); to read the text.
After execution, it takes a while to get the text response. And when i do, part of the JSON text gets printed in the Serial monitor, followed quite shortly by a soft WDT reset.
I get some stack dump, and then it hangs...
Here is the header i get
X-Authentication-Time: 1ms
Cache-Control: max-age=60
Expires: Sun, 10 Mar 2019 12:53:54 +0000
X-Content-Type-Options: nosniff
X-Response-Time: 141.798ms
Vary: Accept-Encoding
If anyone has a proper functional template to read JSON text from a HTTPS URL via GET request , please post it below. I'd greatly appreciate your help!