Recieve HEaders with WiFiClientSecure.h
Posted: Thu Feb 09, 2017 5:09 pm
I am doing a POST with WiFiCLientSecure, all happy sending.
I get my response back with this:
I get the headers back as
Header: Value
Header2: Value
Just in the first section of the line reply.
Is there a nice way to just parse them into
myHearder2 = Header2partOfReply
thanks
I get my response back with this:
Code: Select all
while (client.available()) {
String line = client.readStringUntil('\n');
Serial.println(line);
}
Serial.println("End of message");
// printHeap();
Serial.println("")
I get the headers back as
Header: Value
Header2: Value
Just in the first section of the line reply.
Is there a nice way to just parse them into
myHearder2 = Header2partOfReply
thanks