loading xml file causes crash
Posted: Tue Nov 03, 2020 5:09 pm
Hello all.
Maybe wrong section to post, I try it anyway.
(sorry for my english, i'm.... french)
So I do have an issue loading an xml file generated by a php script. Everything run good until I try http.getstring => crash
I already test it using wemos D1R1 or esp01 (8266).
While publishing same xml on another server, it works good.
I don't know why 1 is running fine and the other not.
here are my xml source :
Faulty one : http://fusteldc.free.fr/ts.php
good one : http://93.16.53.229/ts.php
here is par of my code where it crashes (no crash if http.getString() deleted)
Maybe wrong section to post, I try it anyway.
(sorry for my english, i'm.... french)
So I do have an issue loading an xml file generated by a php script. Everything run good until I try http.getstring => crash
I already test it using wemos D1R1 or esp01 (8266).
While publishing same xml on another server, it works good.
I don't know why 1 is running fine and the other not.
here are my xml source :
Faulty one : http://fusteldc.free.fr/ts.php
good one : http://93.16.53.229/ts.php
here is par of my code where it crashes (no crash if http.getString() deleted)
Code: Select all
HTTPClient http;
String page="/ts.php";
http.begin(host,80,page);
int httpCode = http.GET();
Serial.print("httpcode= ");
Serial.println (httpCode);
if (httpCode == 200)
{
String payload= http.getString();
}