default method is GET, need POST.
<script>
require(["dojo/on","dojo/dom", "dojo/request/xhr", "dojo/json", "dojo/domReady!"],
function(On, Dom, Xhr, Json) {
try {
Xhr("/dojorpc", {data: Json.stringify({params:[{'quite': {'age':32, 'pos':[[11.1,21.1],[12.3,1211.]]}},11], method: "test", id: 1}),handleAs: "json", method: 'POST'}).then(function(result) {
log(result);
}, function(err) {
//err.response.text
});
}
catch(error) {
alert(error);
}
});
</script>