AT+HTTPPARA=\"URL\",\"http:// add variables

I need some help here im trying to send data to webserver and it work using

mySerial.println("AT+HTTPPARA=\"URL\",\"http://mydomain:80/gps/index.php?id=1&time=2008-01-01%2000:00:01&lon=-2.25645&lat=-5.88888\"");

but i want to put variable like LATITUD for example: mySerial.println("AT+HTTPPARA=\"URL\",\"http://mydomain:80/gps/index.php?id=1&time=2008-01-01%2000:00:01&lon=-2.25645&lat=LATITUD\"");

how can i add variable in these url sentence???

how can i add variable in these url sentence???

Exactly the same way that you would if you used only one question mark.

Use sprintf to populate a buffer with the command you want to send, including the value(s) of the variable(s). Then, use Serial.print() to send the data in the buffer.

sorry but cant understand you XD im newbie

alexisVidal22: sorry but cant understand you XD im newbie

I think I've seen something like below to insert variables into a string being sent.

mySerial.print("AT+HTTPPARA=\"URL\",\"http://mydomain:80/gps/index.php?id=1&time=2008-01-01%2000:00:01&lon=-2.25645&lat=");
mySerial.print(LATITUD);
mySerial.println("\"");