Hello everyone,
I`m trying to create REST custom sensor with post request and custom HTTP Header. I activate the option for custom headers and write my header (Content-Type:application/x-www-form-urlencoded), but I dont think it is being send, because I get 500 internal server error. I suppose the problem is with the header, since when I make the same request with the given header with another REST Client (e.g. Mozilla RESTClient extension) a successful response with code 200 and data is returned. If I send it without the header I get the same error response with no content as the sensor. Can you please confirm, that the content type header is supported for the custom REST sensor? How can I be sure, that the header is being send?
Best regards, A
Article Comments
Hello,
thank you very much for the information. Is there currently any workaround or similar sensor that I can use?
Best regards, A.
Nov, 2018 - Permalink
Hello A.,
The only alternative would be the rather old HTTP XML/REST Value Sensor.
Kind regards,
Erhard
Nov, 2018 - Permalink
Hello there,
There seems to be an issue currently with the sensor, custom headers can be entered, but will not really be sent, we're looking into it.
Kind regards,
Erhard
Nov, 2018 - Permalink