GET 的请求:
AT+HTTPTERM
AT+CSQ
AT+CGATT?
AT+SAPBR=3,1,"CONTYPE","GPRS"
AT+SAPBR=1,1
AT+HTTPINIT
AT+HTTPPARA="URL","http://127.0.0.1:3000/v1/test"
AT+HTTPACTION=0 //发送GET请求,注意返回的状态码
AT+HTTPREAD //read data
POST请求:
AT+HTTPTERM
AT+CSQ
AT+CGATT?
AT+SAPBR=3,1,"CONTYPE","GPRS"
AT+SAPBR=1,1
AT+HTTPINIT
AT+HTTPPARA="URL","http://127.0.0.1:3000/v1/mbdevices?devsn=12345678&devtype=abc"
AT+HTTPACTION=1 //发送POST数据,注意返回的状态码
AT+HTTPREAD //read data