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: /
User-Agent: QUECTEL_MODULE
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:03:632]OK
[2020-04-03_17:28:08:585]at+qhttppost=107,80,80

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

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

1 Like