-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
If no other choice, I will do some rewriting. I'll inspect for examples of POST here: http://www.mediawiki.org/wiki/Category:API_extensions
Thanks Alex,
El 03/09/14 a les 17:59, Alex Monk ha escrit:
You should probably use the API rather than that. See https://www.mediawiki.org/wiki/API:Extensions
On 3 September 2014 16:42, Toni Hermoso Pulido toniher@cau.cat wrote:
Hello,
for different custom extensions I've been doing something like this with GET:
$.get( mw.util.wikiScript(), { format: 'json', action: 'ajax', rs: 'MyExt::MyFunction', rsargs: [param1, param2] }, function(data) { // console.log(data); });
MyExt::MyFunction is in $wgAjaxExportList[].
However, since now I have too much data for a URL (414 HTTP error) I'd prefer to use POST. So far I have not found a proper way to build it. Any idea or advice?
- -- Toni Hermoso Pulido http://www.cau.cat http://www.similis.cc