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

You are here

BGS5T HTTP Post Problem | Thales IoT Developer Community

June 24, 2020 - 8:44pm, 5068 views

We are making the transision from a BGS2T to BGS5T in one of our products and are experiencing problems when trying to POST data to one of our clients' URLs.

The issue is that when configuring for a GET, we are designated an IP address when starting the session 

AT^SISO? .......

^SISO: 1,"Http",4,1,0,0,"10.234.15.70:0","---:443"

When configuring for a POST, we are NOT designated an IP address when starting the session

AT^SISO? .......

^SISO: 1,"Http",4,1,0,0,"0.0.0.1:8008","--:443"

There is a full trace of commands and replies from the BGS5T  when attempting the GETs and POSTs below (url and token have been modified for the purpose of this forum)

When running these command sequences on a BGS2T (same SIM card - not that it should make a difference), both the GET and POST result in an IP address being designated.

Any ideas regarding whatis going on here?

Looking at the BGS5T command manual the only relavent difference between BGS5T and BGS2T is the use of AT^SISS=1,hcMethod,1 and AT^SISS=1,cmd,"post" to setup the REST call type.

We are really stuck here - help!

*************************GET****************************************

AT^SICS=0,conType,"GPRS0"

OK

AT^SICS=0,"inactTO", "240"

OK

AT^SICS=0,user,"USER"

OK

AT^SICS=0,passwd,---

OK

AT^SICS=0,apn,"ESEYE.COM"

OK

AT^SISS=1,"srvType","HTTP"

OK

AT^SISS=1,conId,0

OK

AT^SISS=1,cmd,"get"

OK

at^siss=1,hcRedir,0

OK

at^siss=1,"address","https://---"

OK

at^SISS=1,"hcProp","x-token: ---"

OK

AT^SISS?

^SISS: 0,"srvType",""

^SISS: 1,"srvType","Http"

^SISS: 1,"conId","0"

^SISS: 1,"address","https://---"

^SISS: 1,"tcpMR","10"

^SISS: 1,"tcpOT","6000"

^SISS: 1,"cmd","get"

^SISS: 1,"hcProp","---"

^SISS: 1,"hcContLen",""

^SISS: 1,"hcMethod",""

^SISS: 1,"hcRedir","0"

^SISS: 2,"srvType",""

^SISS: 3,"srvType",""

^SISS: 4,"srvType",""

^SISS: 5,"srvType",""

^SISS: 6,"srvType",""

^SISS: 7,"srvType",""

^SISS: 8,"srvType",""

^SISS: 9,"

srvType",""

OK

AT^SISO=1

OK

^SIS: 1,0,2200,"Http ---:443"

^SISR: 1,1

AT^SISO?

^SISO: 0,""

^SISO: 1,"Http",4,1,0,0,"10.234.15.70:0","---:443"

^SISO: 2,""

^SISO: 3,""

^SISO: 4,""

^SISO: 5,""

^SISO: 6,""

^SISO: 7,""

^SISO: 8,""

^SISO: 9,""

OK

************************POST************************************

AT^SISC=1

OK

AT^SICS=0,conType,"GPRS0"

OK

AT^SICS=0,"inactTO", "240"

OK

AT^SICS=0,user,"USER"

OK

AT^SICS=0,passwd,---

OK

AT^SICS=0,apn,"ESEYE.COM"

OK

AT^SISS=1,"srvType","HTTP"

OK

AT^SISS=1,conId,0

OK

AT^SISS=1,cmd,"post"

OK

at^siss=1,hcRedir,0

OK

at^siss=1,"address","https://---"

OK

at^SISS=1,"hcProp","x-token: ---"

OK

AT^SISS?

^SISS: 0,"srvType",""

^SISS: 1,"srvType","Http"

^SISS: 1,"conId","0"

^SISS: 1,"address","https://---"

^SISS: 1,"tcpMR","10"

^SISS: 1,"tcpOT","6000"

^SISS: 1,"cmd","post"

^SISS: 1,"hcProp","x-token: ---"

^SISS: 1,"hcContLen",""

^SISS: 1,"hcMethod",""

^SISS: 1,"hcRedir","0"

^SISS: 2,"srvType",""

^SISS: 3,"srvType",""

^SISS: 4,"srvType",""

^SISS: 5,"srvType",""

^SISS: 6,"srvType",""

^SISS: 7,"srvType",""

^SISS: 8,"srvType",""

^SISS: 9,"

srvType",""

OK

AT^SISO=1

OK

^SIS: 1,0,2200,"Http ---:443"

^SISW: 1,1

AT^SISO?

^SISO: 0,""

^SISO: 1,"Http",4,1,0,0,"0.0.0.1:8008","--:443"

^SISO: 2,""

^SISO: 3,""

^SISO: 4,""

^SISO: 5,""

^SISO: 6,""

^SISO: 7,""

^SISO: 8,""

^SISO: 9,""