I am working with an Arduino Mega and a SIM900 GSM/GPRS shield to make a get request against my own API.
I am using the following AT Commands, the module executes the request, but I receive a 200 response code without a body/response.
Here is my code:
AT+SAPBR=3,1,"Contype","GPRS"
AT+SAPBR=3,1,"APN","my.apn.com"
AT+SAPBR=1,1
AT+SAPBR=2,1
AT+HTTPPARA="CID",1
AT+HTTPPARA="URL","wbs-api.eu-gb.cf.appdomain.cloud/stats"
AT+HTTPACTION=0
-> 0,200,0 (as output of the command)
As far as I know, the last 0 stands for the size of the response body in bytes.
If I further execute
AT+HTTPREAD
->
Nothing is displayed.
Where has my answer disappeared to and why is it empty?
Note: I'm actually able to successful obtain data performing a request to a different server, but I noticed that the working request returns HTML code and not JSON data.
http://
? You also mistypedHTTPPARA
. – gre_gor