Hello there,
I’m trying to send HTTP POST request using my BG77 module and include a JSON body.
In order to do that, according to your docs, I set “requestheader” to 1 and send my own POST request.
Here’s my commands sequence:
AT+QHTTPCFG=“contextid”,1 //OK
AT+QHTTPCFG=“sslctxid”,2 //ssl context 2 includes the requires certificates and key, OK
AT+QHTTPCFG=“requestheader”,1 // OK
AT+QHTTPURL=len,80 //CONNECT
https://myhost/ctrl/mypost?something=somevalue
OK
AT+QHTTPPOST=reqLen,80,80 //CONNECT
POST /ctrl/mypost?something=somevalue HTTP/1.1
Content-Type: application/json
User-Agent: QUECTEL_MODULE
Accept: /
Host: myhost
Accept-Encoding: gzip, deflate, br
Connection: Keep-Alive
Content-Length: 20
{“param1”: “value1”}
OK
+QHTTPPOST: 719
Why does this error returned? what am I missing?
It’s worth mentioning that HTTPGET works perfectly, but POST not.
Thanks in advance