We have written CGI scripts that act as SynthControl clients, sending control messages to a synthesis server.
This was implemented with the sendSC program in its command-line mode. The CGI script constructed invocations of sendSC with command-line arguments to send specific messages, and the sendSC program did all the actual communicating with the synthesizer.