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

You are here

BGS5T HTTP POST

Jure

November 21, 2014 - 2:32pm, 1955 views

Hello,

I am trying to send POST request to the server. I tryed the AT commands and Java but I had no sucess.My header has to look like this:

POST /v1/feeds/122 HTTP/1.1

Host: apiscada.voco.si

X-ApiKey: W382YBfl_vMcfoY3t064kE4zyBYtUXUC3v_-FUPOIVg

User-Agent: CyBro-2

Content-Length: 1935

Content-Type: text/csv

Connection: close

Here is first the Java code:

http://pastebin.com/CUhME6jt

And error is:

javax.microedition.io.ConnectionNotFoundException: error -121 in socket::open

As for AT commands I followed offical example: https://developer.gemalto.com/tutorial/concept-board-internet-services-http

I tryed POST for the data above and GET for site: http://httpbin.org/get nad http://httpbin.org/ip but both times I got: ^SIS: 1,0,3,"Bad address specified"

Here are AT commands:

http://pastebin.com/hVFK7Wcp

I don't know what could be wrong before parameters for internet connection should be working since in the past managed to transfer midlet from web using OTAP. Do I need certificates or is it somthing else?

Regards

Jure