I've similar question like Urlencoding in Dart. I can encode Map, by HttpRequest.postFormData. But JQuery post method can encode Map<String, dynamic>.
JQuery example:
$.post("controller",
{actualTime: 1357089552, events: [{priceInsert: 1.32128, priceExecution: 1.32128}]},
function(data) {/*handle*/});
Firebug HttpRequest post view:
actualTime 1357089552
events[0][priceExecution] 1.32128
events[0][priceInsert] 1.32128
Payload source is:
actualTime=1357089552&events%5B0%5D%5BpriceInsert%5D=1.32128&events%5B0%5D%5BpriceExecution%5D=1.32128
Dart can't do it easily. Someone has this problem solved?
PHP with nette requires to set some header:
X-Requested-With:XMLHttpRequest
Content-Type:application/x-www-form-urlencoded; charset=UTF-8