AT COMMAND to VARIABLE

Hello..

I'm making a gps tracker, but I have problems. when I want to send the coordinates via http, the coordinates have to be a variable that can be sent via http. as the following example:

mySerial.print ("AT+HTTPPARA=\"URL\",\"http://www.mydomain.com/get.php?lon_lat_etc="); mySerial.print (lon_lat_etc); mySerial.println ("\"");

Variable is lon_lat_etc.

Meanwhile, to get the coordinates, I have to use the at command "AT+CGPSINF=0". the result is: + CGPSINF: 0, -6.241335,106.970193,20.200000,20160

How do I change the results of the "AT+CGPSINF=0" into variable lon_lat_etc to be sent via http?

I tried something like this: lon_lat_etc = mySerial.println ("AT+CGPSINF=0"); but it is wrong.

Thank you for your help. Sorry for my english.

http://www.cplusplus.com/doc/tutorial/