Http request adds codes to the string

I have a http GET to which I pass the string -
{"Lat=":gpslat,"Lon=":gpslon,"Date=":gpsdate,"Time=":0,"Device=":name,"timer=":gpsdate,"speed=":gpsspeed,"heading=":gpscourse,"&distance=":0};

However the string that arrive at the server is -
Lat%3D=51.74922783&Lon%3D=-0.96561783&Date%3D=&Time%3D=0&Device%3D=521&timer%3D=&speed%3D=0.021&heading%3D=0&%26distance%3D=0

The PHP on the server is failing to process the received string and setting the Insert values to ""

Is there any way to format the output from http request as just text?

Ian

Change the object you pass the HTTP Get node to be:

{ "Lat":gpslat, "Lon":gpslon, "Date":gpsdate, "Time":0, "Device":name, "timer":gpsdate, "speed":gpsspeed, "heading":gpscourse, "distance":0 }

The node will automatically convert that to the appropriately formatted query parameters for you.

Thanks @knolleary,

Worked a treat.

Ian

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.