Hi everyone. Looking at this page: http://www.mediawiki.org/wiki/API:Edit
There are many parameters that can be set when sending an HTTP POST with the intention of doing an edit. Do all of the parameters go in the URL? Can I shift some of them into the HTTP POST in the body of the request?
In particular, where does the new text go? Does that go as a form item in the body of the request?
Richard
if doing a post, send them all as parts of the post payload data, and only post to the api.php path as the url.
2011/3/3 richardcavell@mail.com:
Hi everyone. Looking at this page: http://www.mediawiki.org/wiki/API:Edit
There are many parameters that can be set when sending an HTTP POST with the intention of doing an edit. Do all of the parameters go in the URL? Can I shift some of them into the HTTP POST in the body of the request?
In particular, where does the new text go? Does that go as a form item in the body of the request?
Any combination of the two is fine: the API doesn't care whether a parameter is in a query string or in the POST body. Of course, it's wise to put things like the new text in the POST body to avoid hitting URL length limits.
Roan Kattouw (Catrope)
2011/3/3 Roan Kattouw roan.kattouw@gmail.com
2011/3/3 richardcavell@mail.com:
Hi everyone. Looking at this page: http://www.mediawiki.org/wiki/API:Edit
There are many parameters that can be set when sending an HTTP POST with the intention of doing an edit. Do all of the parameters go in the URL? Can I shift some of them into the HTTP POST in the body of the request?
In particular, where does the new text go? Does that go as a form item in the body of the request?
I guess, you know wikitools: http://code.google.com/p/python-wikitools/, largely using API; perhaps you'll find inside some useful suggestions.
Alex
mediawiki-api@lists.wikimedia.org