ELS61 R2 FW - POST not compliant with HTTP 1.1/REST | Thales IoT Developer Community
July 20, 2018 - 3:38pm, 6686 views
We have been implementing posts to REST server that always replies with response code and a response body in application/json format.
Issue is that whenever there is a body in response modem acts like there is no data, unless code was 200. Which is incorrect due to HTTP 1.1.
Due to HTTP 1.1 documentation there can be a body if response code is 201: https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html
Due to REST standard there can be specification of an error in body as well. Meaning you can send response with body almost any time.
This leads to the questions :
How can we retrieve the real response code of HTTP server?
Why is the body of HTTP response not included every time to ^SISR ?