Send x-www-form-urlencoded instead of JSON


Hi All,

I am so close to having my setup fully functional, but I ran into a snag that I can’t figure out how to fix.

I am using:

4G + GPS shield from cooking hacks
arduino mega 2560

I want to send GPS data to ubidots, but the content-type for POSTing is set to application/x-www-form-urlencoded.
I have tried for days now to find out the source of this in the libraries in order to change it to application/json, but I just cant find it.

So my question is, is there a way to send data to ubidots’ context field through /x-www-form-urlencoded content so that the maps widget can pick up the lat and lng? The JSON string im trying to convert/send is:

{“value”:0, “context”:{“lat”:-6.2, “lng”:75.4}}

One thing to keep in mind is that when I send value=0 in urlencoded form the POST goes through and I can see a table entry with value = 0 in my ubidots dashboard, so there should be a way to send data to context, no?

Any solutions or workarounds would be greatly appreciated. Thanks!


Hi @mprouve,

We are working on this functionality, we will notify you when we have it ready.

All the best,
Kath :slight_smile:


Hi Kath,

Thank you for your response, do you have an estimation of when this functionality might be available?

Thank you!