Forums > MaxMSP

Sending REST commands to a server

Apr 01 2012 | 6:52 pm

Anyone know of an object that supports the ability to send REST style commands to a server?

For example, from a terminal window (on a mac), I can type

curl http://localhost:10250/row/2/column/12 -X PUT –data red

This posts the value "red" to a resource using the PUT request mechanism.

I would like to not have to spawn to a shell to produce these commands as they can happen quite often (in time to music) and so speed is important.


Apr 03 2012 | 1:27 am

I tried using the ‘shell’ external to do this but I’m suspecting that the ‘shell’ external might have a bug where new arriving commands are overwriting the old ones before the old ones have finished executing. Thus if you send a lot of commands very quickly, they don’t work.

Anyone know anything more on this?

Viewing 2 posts - 1 through 2 (of 2 total)

Forums > MaxMSP