2007-05-30

[Note] Ajax Post

var req = createAjaxRequest();
// ...
var postBody = "aaa=111&bbb=222";
req.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
req.setRequestHeader("Content-length", postBody.length);
req.send(postBody);

沒有留言:

張貼留言