Hi, I’m using Quectel EG91 with STM micro-controller via UART to send a half MB size binary file to s3 bucket. The HTTP method I’m using is PUT request. The modem works fine but sometimes it gets stuck and returns back 400 error code. The sequence of AT commands is as follows:
ati
at+creg?
at+qhttpcfg="contextid",1
at+qiact?
at+qicsgp=1,1,<apn>,<user-name>,<password>,1
at+qiact=1
at+qiact?
at+qhttpcfg="requestheader",1
at+qhttpurl=<url-length>,80
at+qhttppost=<http request + payload total length>,60,80
The bucket is public so no ssl configurations are required at the moment. The only thing I don’t understand is that sometimes it works fine and will upload the binary file continuously but sometimes it will just give me 400 error (+QHTTPOST: 0,400)
Any help would me much appreciated. Thanks