-->
Page 1 of 1

Recieve HEaders with WiFiClientSecure.h

PostPosted: Thu Feb 09, 2017 5:09 pm
by gggggggg
I am doing a POST with WiFiCLientSecure, all happy sending.

I get my response back with this:
Code: Select allwhile (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