HTTP PUT | Telit Cinterion IoT Developer Community
December 7, 2017 - 10:08am, 3976 views
Hello,
the HTTP POST method can be set by the follwing command:
AT^SISS=0,cmd,"post"
We need HTTP PUT but
AT^SISS=0,cmd,"put"
returns an error. How can I do a HTTP PUT anyway?
Thanks a lot in advance for any help,
HP
Hello,
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.
Best regards,
Bartłomiej
Hello,
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,
HP
Hello,
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.
Regards,
Bartłomiej
Ok, I understand.
Best regards,
HP