How to customize HTTP Request header with BG96

Hi everyone.

I’m using a device with the BG96.
I wouldn’t mind customizing HTTP Request header.

It’s describe on ‘BG96 HTTP(S) AT Commands Manual’ that is ‘HTTP(S) request header can be customized by configuring <request_header> as 1 via AT+QHTTPCFG command’.

How do I customize the Request Header?
Is there a sample for reference?

I want to add following to request header.
Authorization : Bearer ******
content-type: application/json

I want to send by such below request header.
POST //**** HTTP/1.1
Host: https/
Accept: /
Connection: Keep-Alive
Content-Type: application/json
Authorization: Bearer ******
Content-Length: **

Thanks in advance for your help.

Hi Tetuya ,

pls refer to the below example :


[2020-04-03_17:28:12:502]POST /1K.txt HTTP/1.1
Host: ![](file:///C:\Users\\AppData\Roaming\Tencent\QQTempSys%W@GJ$ACOF(TYDYECOKVDYB.png)
Connection: keep-alive
Content-Length: 10

[2020-04-03_17:28:13:230]+QHTTPPOST: 0,200,1024

1 Like