Bg96 HTTP json header

Hi
i’m using bg96 and Tera Term Serial Program
Trying to Post Json but just response bad request

AT+QHTTPCFG=“contextid”,1
OK
AT+QHTTPCFG=“requestheader”,1
OK
AT+QHTTPURL=33,80
http://139.150.83.176/api/message
AT+qhttpurl=167,80,80
POST /api/message HTTP/1.1 \r\n Host:http://139.150.83.176 \r\n Accept: / \r\n Content-Type: application/json \r\n Content-Length:23 \r\n\r\n {“room”:“1”,“msg”:“hi”}

if you know how to solve this problem guide me
thanks

Hi,
I found the command you sent is wrong, pls try following command, hope it helps you:
AT+QHTTPPOST=145,60,60

POST /api/message HTTP/1.1
Host: http://139.150.83.176
Accept: /
Content-Type: application/json
Content-Length: 23

{“room”:“1”,“msg”:“hi”}

1 Like