Greetings,
I seem to recall that once upon a time the API requires all requests to be POST, but apparently GET is now allowed as well, and preferred for cachability. The API:Quick start page links to http://www.mediawiki.org/wiki/API:FAQ#GET_or_POST.3F, but apparently this link is broken and (as far as I can tell?) has never existed in the history. So two questions:
1) When was the change made, or has it been this way all along? 2) Is there are list of which operations require POST? Browsing through the docs, at least login and edit seem to, but is there a consolidated list? The Perl MediaWiki::API module suggests that GET is allowed only for query, logout, purge, and paraminfo.
Cheers, -jani
On Thu, Sep 29, 2011 at 2:54 PM, Jani Patokallio jpatokal@iki.fi wrote:
Greetings,
I seem to recall that once upon a time the API requires all requests to be POST,
That was never the case. Some modules, like login, edit, etc., do require POST, but action=query requests have always allowed both GET and POST.
but apparently GET is now allowed as well, and preferred for cachability. The API:Quick start page links to http://www.mediawiki.org/wiki/API:FAQ#GET_or_POST.3F, but apparently this link is broken and (as far as I can tell?) has never existed in the history. So two questions:
- When was the change made, or has it been this way all along?
It's been this way all along.
- Is there are list of which operations require POST? Browsing through
the docs, at least login and edit seem to, but is there a consolidated list? The Perl MediaWiki::API module suggests that GET is allowed only for query, logout, purge, and paraminfo.
See the self-documenting page at http://en.wikipedia.org/w/api.php , Ctrl+F for "POST".
Roan
On Thu, Sep 29, 2011 at 2:54 PM, Jani Patokallio jpatokal@iki.fi wrote:
- When was the change made, or has it been this way all along?
As far as I remember, and that is at least from 2007 onwards, GET has always been allowed, except for those can are considered write actions.
- Is there are list of which operations require POST? Browsing through
the docs, at least login and edit seem to, but is there a consolidated list? The Perl MediaWiki::API module suggests that GET is allowed only for query, logout, purge, and paraminfo.
GET is always allowed, unless the module documentation at action=help indicates "This module only accepts POST requests".
Bryan
mediawiki-api@lists.wikimedia.org