Chip
Many thanks for the guidance - I'll take that info and run with it ...
Andy
toggle quoted message
Show quoted text
--- In Crestron@..., "Chip Moody" <cfm@...> wrote:
Andy, you've got URLs there that a web browser will take and break down into more verbose HTTP packets - these are usually hidden from you when you're using a web browser.
You need to figure out what elements go into that HTTP packet and emulate that. You're off to a good start, opening up a TCP/IP Client symbol to the IP address on port 80. Once you get confirmation back that you've connected, (status goes to 2) you can send your HTTP request. That will consist at the VERY least of a GET command containing "/Set.cmd?CMD=SetPower+P60=1+P61=1+P62=1+P63=1", and a Base-64 encoded version of the username and password.
There is a module in the file section here that will do the Base-64 encoding for you. For the rest, dig through the message archive a bit more - it's all there...somewhere - as this has been gone over a bunch of times.
This might also be of some help: <>
- Chip
--- In Crestron@..., "ab_mc_uk" <andy.ontheroad@> wrote:
Hi
I am using Aviosys 9258 IP Power Controllers on various sites and would now like to be able to control them from within a Crestron program.
I have figured out/found the right http command to send eg
will turn all four power outlets on and
will turn all four power outlets off.
So my question is how do I send these, or similar, commands to the Aviosys from a Crestron processor?
I have done a search and notice that others are also using these units for remote power resetting so I'm hoping somone has already got this figured out.
I have managed to get a connection to the unit (currently on port 80 ahtoguh this can be changed) from a program usign a TCP/IP Client symbol but get no response from the unit when I send commands out to it !
The commands work perfectly from all the browsers I've tried.
Thanks
Andy