Hi All
Hope you are doing well
I am trying to post an HTTP URL with data to a website.
I tested it first on Cosm and it works on Cosm, but I want to emulate an entry in the address bar of IE.
If I type the following
http://www.mysite.com/test/gettempdata.php?TI=12.1&TO=22.2&TR=33.3 in to the address bar of internet explorer it updates the MySQL DB and shows the DATA on the page.
How do I do the same with AT commands?
I am not sure if there need to be extra ""
I am using a SIM900 with Software Serial witch has a 64 Byte buffer.
I have tried the following:
AT+SAPBR=3,1,"APN","internet"
OK
AT+CIFSR
41.18.131.13
AT+CIPSPRT=0
OK
AT+CIPSTART="TCP","http:/www.mysite.com","80"
OK
CONNECT OK
AT+CIPSEND
http:/www.mysite.com/test/gettempdata.php?TI=25.5&TO=20.9&TR=16.7
SEND OK
AT+CIPCLOSE
AT+CIPSHUT=0
CLOSE OK
and
AT+CSQ
AT+CGATT?
AT+SAPBR=3,1,"CONTYPE","GPRS"
+CSQ: 12,0
AT+SAPBR=3,1,"APN","internet"
OK
AT+HTTPPARA="URL","http:/www.mysite.com/test/gettempdata.php?TI=25.5&TO=20.9&TR=16.7"
OK
AT+HTTPACTION=0
OK
+HTTPACTION:0,603,0
AT+HTTPREAD
OK
When I use HTTPPARA I do not get response, if I use HTTPPARA with
www.google.com I get a response when I run HTTPREAD
Any help would be appreciated.
Please let me know if I need to post the code as well.
Thank you in advanced
Regards
Luan