brokeh / pophttp

Add support for HTTP requests to the Logitech pop switches
MIT License
14 stars 1 forks source link

How to differentiate between POST and GET requests (for home-assistant)? #9

Open MickiCH opened 3 years ago

MickiCH commented 3 years ago

I just setup my home-assistant and I realized that even if my request has no body, just something like this: "http://ip:8123/api/services/script/turnofflivingroom" it will not work.

I tested with postman and when I use the GET method I get: 405: Method Not Allowed When I use the POST method it works.

So I was assuming that this might be issue. Any other idea how to send a request to home-assistant from pophttp? Thanks