How to send RAW content via Rest?

  • Thread starter Thread starter Android Central Question
  • Start date Start date
A

Android Central Question

Hi,
I'm trying to add a "rest" command that should change a state on my domotic system (Openhab).
I've tried to use either a "POST" or "PUT" kind of command, passing a simple "ON" or "{"data":"ON"} in optional data...
but still without effect...
Using the chrome add-on to compose customs "http request commands", I simply set the command to "POST", set the URL and finally in the field "RAW DATA" I specify "ON"; it works without problem,...
How can I define the same data paket in NFC Tool Actions?

Thank you
Christian
 
Neither NFC nor HTTP headers should be used for that large a packet of data. (Not JSON either.) You could try sending it via FTP, if the receiving end is capable of FTP. (After all, that's what FTP is for.)

(@belodion - it's more of a programming and internet problem than an Android problem. Most Android developers probably don't know REST from JSON -[that's a joke, but it's true].)
 

Trending Posts

Forum statistics

Threads
956,241
Messages
6,967,129
Members
3,163,489
Latest member
JonC