BG95-M3 HTTP POST sends empty body before inputting data

Hi all,

I am trying to send an HTTP Post request using the AT+QHTTPPOST command. The problem is that the modem opens a connection and sends an empty body POST request before I actually input the data.

at+qhttpcfg?
+QHTTPCFG: “contextid”,1
+QHTTPCFG: “requestheader”,0
+QHTTPCFG: “responseheader”,0
+QHTTPCFG: “sslctxid”,1
+QHTTPCFG: “contenttype”,0

at+qhttpurl=38,10
CONNECT

OK

at+qhttppost=13,10,10
CONNECT <-- request being sent here immediately not waiting for data, with an empty body
{“test”:true} <-- data being sent to modem, ignored
OK

+QHTTPPOST: 0,200,15

I appreciate any feedback. Thanks

hi,zokir:


Quectel_BG95&BG77_HTTP(S)_Application_Note_V1.0.pdf (612.6 KB)

Hi, thanks for the reply.

Yes, “request_header” is set to 0. I am only sending the body. But the problem is that request is sent before I even try to write body to UART.

rsptime is too short.
Please see the following configuration
at+qhttppost=13,60,60
you try again!

Hi Zokir,

Did you resolve this problem?