0 Replies Latest reply: Jun 25, 2013 6:05 PM by Olga Mora RSS

How to send data to a web server using HTTP POST, AT commands and SIM900B module?

Olga Mora Newbie

Hi,

 

I need to do a POST to a web server I need send information, with a gprs connection and the SIM900B module.

This is the information that I need to send, but when I try to do it, I always get an ERROR.

 

percepcion=<envEstacion><idEstacion>1</idEstacion><fecha>2013-06-10 17:04:20.683 CDT</fecha><mediciones><medSensor><idSensor>1</idSensor><valor>35.0</valor></medSensor></mediciones></envEstacion>

 

Can somebody tell me please what I am doing wrong?

at

OK

at+sapbr=3,1,"contype","gprs"

OK

at+sapbr=3,1,"apn","internet.xxxxx.xxx"

OK

at+sapbr=3,1,"user","xxxxx"

OK

at+sapbr=3,1,"pwd","xxxx"

OK

at+sapbr=1,1

OK

at+httpinit

OK

at+httppara="cid",1

OK

at+httppara="url","www.xxxxxxx.com/xxx/xxxxx/"

OK

at+httpdata=195,10000

DOWNLOAD

ERROR

at+httpaction=1

+HTTPACTION:1,200,0

 

Only when I use: http://m2msupport.net/m2msupport/module-tester/ is possible to see the data on the web server.. but I need to know how to do it with AT commands, because in my aplication I do not can use the module tester.