[Greasemonkey] xmlhttpRequest and POST

Jeremy Dunck jdunck at gmail.com
Mon Apr 18 16:53:15 EDT 2005

On 4/18/05, Bob Herrmann <bob at jadn.com> wrote:
> Yea, you were right.  This worked fine.  Note the extra bracket and
> curleys around the headers.
>         headers: [{'Content-type': 'application/x-www-form-urlencoded'}],

What version of GM are you running?

This syntax (array of dicts) was in 0.2.5, but I thought was fixed in 0.2.6.

In any case, it should be a simple dictionary going forward:

headers: {'Content-type': 'application/x-www-form-urlencoded'},

More information about the Greasemonkey mailing list