Javascript post请求中的数据被截断
我在Greasemonkey脚本中使用Javascript post请求中的数据被截断,javascript,firefox,xmlhttprequest,greasemonkey,mozilla,Javascript,Firefox,Xmlhttprequest,Greasemonkey,Mozilla,我在Greasemonkey脚本中使用GM\u xmlhttpRequest,将数据发布到我的服务器: var contentodds = $("#panel").html(); // console.log(contentodds); var formData1 = contentodds; console.log(contentodds); GM_xmlhttpRequest ( { method: "POST", url: "http://loc
GM\u xmlhttpRequest
,将数据发布到我的服务器:
var contentodds = $("#panel").html();
// console.log(contentodds);
var formData1 = contentodds;
console.log(contentodds);
GM_xmlhttpRequest ( {
method: "POST",
url: "http://localhost:88/quote/homes/dotest",
data: "SboData=" + contentodds
// etc.
,
headers: {
"Content-Type": "application/x-www-form-urlencoded",
"Content-length":contentodds.length
},
onload: function (response) {
//console.log (response.responseText);
}
} );
默认情况下,Greasemonkey使用
xmlhttprequest
对象。我的字符串数据是10994944(字节?字符?)长,但在发布时,它被截断为10000个字符
有没有办法提高Mozilla/Greasemonkey中xmlhttprequest
对象的数据限制?我已经看到Internet Explorer中的xmlhttp请求、对象限制很大,但在Firefox中没有。
或者,是否有其他解决方案可以将数据分小块发布