HTTP Binding or sendHttpGetRequest

  1. It sure would be a nice contribution to OH.

  2. See OAuth2 using just OH Rules and myopenhab.org and iCloud device data integration in openHAB for a couple of examples of using core Java HTTP classes to issue HTTP requests with full support for headers.

  3. Would probably be the easiest approach.

  4. OK, this would probably be pretty easy too.

  5. Since I already have such a beast (GitHub - rkoshak/sensorReporter: A python based service that receives sensor inputs and publishes them in various ways.) I would probably do it this way largely because 3 wouldn’t be an option since I run in Docker.

I think that most of the time when anything more than a straight call is required someone ends up writing a binding. Header stuff can be provided for sendHttpPostRequest I think (maybe it was Put). But no one has bothered to submit a PR to add this to the other ones.

1 Like