/stream/ScoreID
The score data are in a request attribute called data.
The following HTML script passes in Guido Music Notation code to a server:
<html>
<body>
<form action="http://guido.server.org/stream/*ScoreID*" method="post">
<input type="hidden" name="data" value="g e c " />
<input type="submit" value="Submit" />
</form>
</body>
</html>
Here is an equivalent call using ajax:
$.ajax({
url: 'http://guido.server.org/stream/*ScoreID*',
type: 'POST',
data: "g e c",
});
or using jQuery:
$.post('http://guido.server.org/stream/*ScoreID*', "g e c");
or using curl:
curl -d "data=g e c" http://guido.server.org/stream/*ScoreID*
Files can be sent to the server via POST. For example, you can upload the file foo.gmn with:
curl --data-urlencode "data@foo.gmn" http://guido.grame.fr:8000/stream/*ScoreID*
The new data are added to the referenced stream with GuidoWriteStream C/C++ API. After that, the Guido Abstract representation is created.