Thales' cellular IoT products business is now part of Telit Cinterion, find out more.

You are here

BGS5T character encoding and attaching data in HTTP POST | Telit Cinterion IoT Developer Community

November 27, 2014 - 11:09am, 9007 views

Hi,

I have a problem with HTTP request. When I use AT commands module encodes underscore ("_") as \u00a7. So may api key in header is changed and I can't make that POST request.

When I use Java and httpconnection my form is emptey but apikey is correctly encoded. In form data have to be shaped like .csv. Example:

test,1234

test2,1235

So do you have any advice how can I add data to the form, or change encoding with AT commands. When doing that I tryed with:

AT^SICS=0,alphabet,1

But without success.

Here is my Java code:

http://pastebin.com/iKZmxX1L