// ==UserScript==
// @name name
// @namespace namespace
// @include http://xxx.com/xx.aspx
// @version 1
// @grant GM_xmlhttpRequest
// ==/UserScript==
GM_xmlhttpRequest({
method: 'POST',
url: 'http://xxx.com/Ajax/xx.php',
data:"a=a&b=b&c=c&d=d",
headers: {"Content-Type": "application/x-www-form-urlencoded"},
onload: function(responseDetails) {
alert(responseDetails.status +
' ' + responseDetails.statusText + '\n\n' +
'Feed data:\n' + responseDetails.responseText);
}
});

GET示例可以看这里:http://wiki.greasespot.net/GM_xmlhttpRequest#GET_request

Related Posts: Greasemonkey-GM_xmlhttpRequest POST示例 :