https://bugzilla.wikimedia.org/show_bug.cgi?id=25174
Summary: boolean (url) variables are treated differently by the api depending on if POST or GET is used Product: MediaWiki Version: 1.16 Platform: All OS/Version: All Status: NEW Severity: trivial Priority: Normal Component: API AssignedTo: roan.katt...@gmail.com ReportedBy: bawolff...@gmail.com CC: bryan.tongm...@gmail.com, s...@reedyboy.net, vasi...@gmail.com, soxre...@gmail.com 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.). -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l