[Greasemonkey] post request

Aaron Boodman zboogs at gmail.com
Wed Jul 6 16:12:13 EDT 2005

You should be able to post an abitrary number and size of parameters
using just the syntax you mention.

The only gotcha would be that you should escape( ) the params to make
sure that they are URL encoded. So for instance:

data:"foo=" + escape(document.body.innerHTML)


On 7/6/05, Tobias Orterer <orterer at gmail.com> wrote:
> hi,
> how can i post with GM_xmlhttpRequest more than just a value?
> data: "foo=bar&hot=dog&mon=key",
> its ok but whats with large text?
> for the test, whats with document.body.innerHTML
> can i just use
> data: "site=" + document.body.innerHTML,
> or should it be encoded with base64 or rawurl etc.?
> --
> PGP: 1D87 2E28 B3A5 EEAE 19EB  01C1 ED45 5B31 39AA 1669
> X-Face: #tKg=zl at ll)/&Fk7:KT,[a*VyTHbwl.(=kO_u_T~-8:YDVcz9FGO74R=I32L'#)-ynM8lwc
>  B;r,W=&vOx;x#:p-kaIa)LwWLsh.j8"+&n4l:GJMU<i|'lQ9XT>J%pfO$yS+pwag_'Ce/~Zc^&ShSv
>  mLp\Ngd&t`r\&VQ'
> _______________________________________________
> Greasemonkey mailing list
> Greasemonkey at mozdev.org
> http://mozdev.org/mailman/listinfo/greasemonkey

More information about the Greasemonkey mailing list