2010/3/11 Krenar Qehaja <[email protected]>: > Hi everyone, > > Last couple of days, I was trying to write a script around WP API > (http://en.wikipedia.org/w/api.php) and I'm struggling with "action=edit" > while trying to edit a page because there seems to be limitation to the POST > size. > > The error that I'm receiving is vague: > <error> > Request: POST http://en.wikipedia.org/w/api.php?action=edit&format=xml, > from 84.22.62.67 via knsq23.knams.wikimedia.org (squid/2.7.STABLE6) to () > > Error: ERR_INVALID_REQ, errno [No Error] at Thu, 11 Mar 2010 11:46:27 GMT > </error> > > AFAICS there is no problem with POST size up to 2.5KB, anything more than that > results with that error. > > So, is there any size limitation regarding POST? > No, there are no such limitations. ERR_INVALID_REQ seems to indicate there's something wrong with your request, could you pastebin an example of a full request that fails, including all headers? Also, does retrying the request help?
Roan Kattouw (Catrope) _______________________________________________ Mediawiki-api mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
