December 7, 2017 - 10:08am, 3655 views
the HTTP POST method can be set by the follwing command:
We need HTTP PUT but
returns an error. How can I do a HTTP PUT anyway?
Thanks a lot in advance for any help,
According to the AT commands specification for EHS6 there are the following possibilities for "cmd" for HTTP service:
- "0" or "get": Send HTTP GET request to server
- "1" or "post": Send HTTP POST request to server
- "2" or "head": Send HTTP HEAD request to server
You didn't specify the module type but there is probably no support for PUT in any module.
In that case you can use socket instead of http and construct http header in your application.
thanks for the quick answer. We are using an EHS6.
We also want to use TLS. In case we woud use socket instead of http I suppose we also would have to handle the TLS protocol on the host, what is not feasible.
The only difference between methods PUT and POST is merey the word PUT intead of POST. Is there any chance that the PUT method will be supported soon?
Thanks and best regards,
It is possible to use secure socket in the same way as https does it. So this solution should still be possble.
I wouldn't ***** on PUT implementation in a near future. The functionality of IP services over AT commands is not new and it's quite stable over time.
Ok, I understand.
© 2013-2022 THALES DIS AIS Deutschland GmbH