BG950 https post with custom header

Hello,

I’m trying to post a file to a server using a BG950. I need to use a custom header because our organization uses authorization tokens.
We are connecting to the server but keep getting an error 400 response. When querying the server message we get:

CONNECT 42
{"message":"No file found in the request"}

Our header and message we put on the BG950 filesystem and use the AT+QHTTPPOSTFILE command. The file we create is shown below.

We to these configurations before sending:

AT+QHTTPCFG=\"requestheader\",1
AT+QHTTPCFG=\"contenttype\",1"

Thanks for any help.

POST /dev/files HTTP/1.1
HOST: asdf.ourserver.com
User-Agent: curl/8.10.1
Accept: /
Authorization: Bearer falafel-cheeseburger
Content-Type: multipart/form-data; boundary=------------------------vh0m38cnp4BK444QXwrQd6
Content-Length: 325

------------------------vh0m38cnp4BK444QXwrQd6
Content-Disposition: form-data; name=“MAX_FILE_SIZE”

100000

------------------------vh0m38cnp4BK444QXwrQd6
Content-Disposition: form-data; name=“file1”; filename=“a.txt”
Content-Type: text/plain

This is the file.

------------------------vh0m38cnp4BK444QXwrQd6–

Hi @TimC1
Do your organization people use the same custom header?

Thanks, this is the first time our company used this custom header, it’s a new project. It looks like the problem was we didn’t have the SSL keys and certificates loaded. The server errors gave no indication of this.