hi,
to get data from http url I have wrote following method:
String DownloadJson(String url){
String output;
if(client.connect(host, serverPort)) {
client.println("GET "+url+" HTTP/1.0");
client.println("Host: " + host);
client.printlnf("Content-Length: %d", 2);
client.println("Content-Type: application/json");
client.println();
client.flush();
delay(5000);
while(client.available()) {
char c = client.read();
output = output + c;
}
}
return output;
}
however in response I get additional info along with response
e.g. HTTP/1.1 200 OK Connection: close Date: Sat, 01 Feb 2020 10:46:47 GMT Content-Type: application/json; charset=utf-8 Server: Kestrel X-Content-Type-Options: nosniff X-XSS-Protection: 1; mode=block X-Frame-Options: SAMEORIGIN [7,9,10,11]
how do I skip the extra info and get only [7,9,10,11]
-nitin