7)AT+QHTTPPOST=135,80,80
Connect
POST /fold/devicereg HTTP/1.1
Host: iot.hardikpokar.in
Content-Type: application/json
Accept: /
Content-Length: 19
//Don’t miss this line
{“id”:123,“USER”:1}
thanks hardik…
you were right i tried with that extra line which i missed and i was able to rectify invalid header error.
but an error indicating invalid host name occured afterwards .
so i changed the host name starting from https to www
and it worked .
status : true
THANKS FOR THE HELP.
I have successfully posted the JSON data. Now the next challenge is how to parse the JSON data.
after calling AT+QHTTPGET=80 AND Then AT+QHTTPREAD=80;
PLEASE help
Hi Bhavish_yadav:
You are welcome. GET request cannot carry content.It can only request content from the server.
After you execute get successfully, you can directly read the content requested from the server through AT+QHTTPREAD=80.