EG915N HTTP Custom header

I need to add a header with Authorization: Bearer for an HTTP POST and HTTP GET process.

I have done the following for POST:

AT+QHTTPCFG=“requestheader”,1
AT+QHTTPURL=50,10
http://xxxx-xxxxxx.xxx-xxxxxxx.de:4000/xxxxmessage/
AT+QHTTPPOST=556,80,80
POST /xxxmessage HTTP/1.1\r\nHost: http://xxx-xxxxxx.xxx-xxxxxxx.de:4000\r\nContent-Type: application/json\nAuthorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9. eyJpZCI6IjEiLCJuYmYiOjE3MTYyODEwOTAsImV4cCI6MTcxNjMxNzA5MCwiaWF0IjoxNzE2MjgxMDkwfQ.VYytVrQG50R7nOzvcodyzVIXC_IFm2o2Mf12l31Yf6E\r\nContent-Length: 238\r\n
{“IMEI”:“123456789101112”,“MobileOperator”:“Vodafone.de”,“Lat”:0.000000,“Lon”:0.000000,“Voltage”:9.19,“Message”:“GPS FIX ERROR”,“Cycles”:0. 00,“Temperature”:32.00,“Roll”:-0.51,“Pitch”:1.36,“SignalStrength”:21,“SignalQuality”:99,“Networktype”:7}\r\n

I get the error 408(timeout)
+QHTTPPOST: 0,408,0\r\n

if I remove AT+QHTTPCFG=“requestheader”,1 and only send the JSON data in the post, it works.
The server(API) currently accepts test requests with and without authorization, but should only work with authorization in the future.
What is the correct way to add Authorization Header?

Hi @Jurka.Fitz
It looks like the header length is longer than 556. Please fill in the correct field length to ensure header integrity.