DrayTek UK Users' Community Forum

Help, Advice and Solutions from DrayTek Users

HTTP Get or POST to Switch off POE Ports

More
29 Apr 2021 10:42 #99192 by ops
I have a Draytek managed POE switch. I can login to the switch and power cycle ports, which is helpful for rebooting touchscreens/ WAPs etc. I also install Control4. I want to creat a button in Control4, which will allow the client to reboot a touchscreen etc. They are not capabvle of logging intyo a switch and doing this manually.

I have a Control4 driver which makes it very easy to fire simple GET or POST requests from programming. Does anyone know how to create a GET or POST string to power off a port on a switch and then a second one to turn back on, e.g:

http://admin:password@192.168.1.2/admin?port=1&power=off
http://admin:password@192.168.1.2/admin?port=1&power=on

or even
http://admin:password@192.168.1.2/admin?port=1&power=reboot

Ths is the Control4 driver:
http://www.chowmainsoft.com/generic-tcp-command

Please Log in or Create an account to join the conversation.

Moderators: ChrisSami