Last modified: 2014-09-05 11:00:36 UTC
WebRequest.php populates its data from $_POST + $_GET. The two methods, however, don't behave the same when it comes to form data, so flag values are dropped unless you add the equals sign with an empty value. For example: http://rob-centos/uesp/api.php?action=edit&title=Sandbox&text=Test&summary=Test&minor&token=<token> ...results in a normal edit, despite what you might expect, while... http://rob-centos/uesp/api.php?action=edit&title=Sandbox&text=Test&summary=Test&minor=&token=<token> ...results in a minor edit, as expected. Note that this does NOT apply to GET requests. API:Query's "redirect" flag works just fine, for example. As I indicated at https://bugs.php.net/bug.php?id=67942 , file_get_contents("php://input") can be used to get the complete set of values, if desired. Alternatively, we can simply change the MediaWiki documentation to reflect the oddity (as I've done at m:API:Edit).