how to save "http request" answer

Hello,

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:

"http://domaineX.com/system_phpCommunication/?mode=1&user=james&pass=1234&unit=unit_one" "http://domaineY.com/system_phpCommunication/?mode=3&user=sertioc&pass=1234&unit=unit_h"

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

String answerX = function("http://domaineX.com/system_phpCommunication/?mode=1&user=james&pass=1234&unit=unit_one"); String answerY = function("http://domaineY.com/system_phpCommunication/?mode=3&user=sertioc&pass=1234&unit=unit_h");

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 client.read() 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.