Gemalto is now part of the Thales Group, find out more.

You are here

POST json data with BGS1 | Thales IoT Developer Community

August 1, 2017 - 10:56pm, 1562 views

I'm struggling with the setup of the header contens for a POST to a server that uses Basic Authentication.

Using a browser tool (or CURL) I can post data to the server with success:

Authorization: Basic OmZzNEZkcmc1WGQ=
Content-Type: application/json

payload = {"serial": "123","transmitters": [{"ser": 123,"w_v": 276,"b_l": 60,"t_s": true,"p_s": true,"tsp": 1501009452}]}

The examples on the forum and Knowlagebase does not show how the header data is handeled.

(I'm using the AT commands to setup the HTTP internet server)

I can succsesfull GET and POST to a diffrent sever that does not require the Authenticaion or the json content.

Please advice?