I'm not 100% sure if this is even if this is a bug or not (And if it is, it might be a php/apache bug, not a mediawiki bug), but it confused me for a little bit.
Basically, make a GET request like http://example.com/api.php?action=query&prop=revisions&titles=Main%20Page&rvprop=content&rvgeneratexml
It works as expected. Now try POSTing the equivelent (with a content-type of application/x-www-form-urlencoded): action=query&prop=revisions&titles=Main%20Page&rvprop=content&rvgeneratexml
It doesn't work unless you have an = sign after the rvgeneratexml. This is especially confusing because in the example given for the edit module it gives the example action=edit&title=Test&summary=NOTOC&minor&prependtext=NOTOC%0A&basetimestamp=20070824123454&token=%2B\
Which won't be marked as minor if POSTed.
(I discovered this trying to figure out why my bot's edit wasn't being marked as bot. I was doing my testing using wget if it matters.).
Version: 1.16.x
Severity: trivial