1. Is there a recent change in the codebase which might explain what I
think I'm observing?
2. Is there any reason I might not be able to contribute edits to
Mediawiki::Bot to use GETs where possible?
3. Does anyone who knows the codebase feel inclined to do it sooner
and better than I might?
via pywikipedia I'd usually see something like
but with MediaWiki::Bot it's a very similar post.
--
--
Mike Cariaso
http://www.cariaso.com
There haven't been many changes recently, so I doubt that's the problem.
I would look at MediaWiki::API for whether the requests are POST vs GET,
as MediaWiki::Bot doesn't craft any requests itself - everything is done
through that lower-level module. I've CCed Jools in case they know the
answer to this problem.
-Mike
not wanting to quote the manual *cough* but i recently (well. within the
last year or so) documented this after it was requested as a feature:
config option:
use_http_get = Boolean 0 or 1 (defaults to 0). If set to 1, the perl
module will use http GET method for accessing the api. By default it
uses the POST method. Note that the module will still use POST for the
api calls that require POST no matter what the value of this
configuration option. Currently the following actions will work with
GET: query, logout, purge, paraminfo.
so if enabled its still limited to these methods. if there are others
compatible with a get method ill add em. cheers :)
Best Regards
Jools
Well it sure is a good thing someone knows what's going on O_o
Why don't I go ahead and fix that!
-Mike
perhaps it makes a good default, but the config was a later addition so
i made it opt in rather than opt out, and because all calls work via
post, when writing the module it seemed the better option (I still need
a whitelist of calls that work via get, or a blacklist that don't - the
whitelist is currently simpler).
Of course with your module you could make it the default. im unsure what
would be best, it does seem as though it's good for those that run wikis
with caches the current default aint great, but then the "whitelist"
needs to be kept up to date if they introduce new calls that are
available via get..
Thoughts ?
Best Regards
Jools