building GET request in arduino

Hi

i looking and searching, but i can't find anwser :frowning:

i try to program Arduino to generate GET request to my apache with multiple variable in one get

i have 10 temp sensor

float temp[9]

and i use (now i use POST, but have same problem with GET)

client.println("POST/add.php HTTP/1.1");
client.println("Host: 192.168.1.31");
client.println("Content-Type: application/x-www-form-urlencoded");
client.print("Content-Length: ");
client.println(data.length());
client.println();
client.print(data);

to send data with all temp value to php that add it to mysql

so i need some like this

data = "?temp0=temp[0]&temp1=temp[1]&...."

how i can merge char/String with int/float ??

data = "?temp0=".temp[0]."&temp1=".temp[1].... ??

you can continue with client.print("temp0="); client.print(temp[0]);...

or you can use sprintf()

char data[100];
sprint(data, "temp0=%d&temp1=%d", temp[0], temp[1]);
client.print(data);