johnnyt Posted October 19, 2012 Posted October 19, 2012 How does one send a REST command to ISY from a DOS batch file? How do I do it from a VB Script? I did browse the wiki but found nothing on how to actually make a REST call. (I did figure out that I can do it using firefox but I can't call FF from a DOS box.) Maybe I just didn't look in the right places? Any info would be appreciated.
Xathros Posted October 19, 2012 Posted October 19, 2012 Hi jonnyt- Try wget for windows: http://gnuwin32.sourceforge.net/packages/wget.htm Does exactly what you need and from the CLI. -Xathros
ih574 Posted October 20, 2012 Posted October 20, 2012 I use a program called "http-ping.exe." It lets me send http commands from a command line. For example, this one executes the "runThen" of program 0115: http-ping.exe -n 1 http://userid:password@192.168.75.18:3968/rest/programs/0115/runThen In this case, fill in userid and password with your own and put in the right IP address and TCP port. The -n 1 causes it to run once. Full set of commands are shown with an "http-ping /?" command. I got http-ping from here: http://www.coretechnologies.com/products/http-ping/ r- Tom C. http://www.outcropacres.com
Recommended Posts