how to save "http request" answer


I need help with task I didn't found solution for:

getRequest and arduino: I have a server that return a value "1", or "0" or a "some text" as a response to the following getRequest:

"" ""

How to save the answer into a String variable on arduino like:

String answerX = function(""); String answerY = function("");

where answerX and answerY can contains ie: "1", or "0" or a "some text"

many thanks! Peter

Please post the code that is running on the Arduino.

Typically, the client.connected(), client.available() and methods are used to get the response, and print it to the Serial Monitor. It is trivial to also store it in a String object. Trivial, but not always possible, depending on the length of the response.