Anomie moved this task from Inbox to Done on the Core Platform Team Workboards (Clinic Duty Team) board. Anomie added a project: Traffic. Anomie added a comment.
There's nothing to do with #MediaWiki-API <https://phabricator.wikimedia.org/tag/mediawiki-api/> here, or with MediaWiki at all. Any request to wikidata.org is served a 301 redirect to the corresponding www.wikidata.org URI before it even reaches MediaWiki (probably at the Apache or Varnish level). Apparently whatever client library you're using to make the requests is converting the POST to a GET when following the redirect (as allowed but not necessarily recommended by RFC 7231 ยง 6.4.2 <https://www.rfc-editor.org/rfc/rfc7231.html#section-6.4.2>), which is why your POSTs return the response that api.php gives when no parameters are specified. Ideally you shouldn't be using a non-canonical endpoint that redirects in the first place, particularly for POSTS. I'm going to punt this over to #traffic <https://phabricator.wikimedia.org/tag/traffic/> in case they want to consider changing the 301 to a 307 for such POSTs to avoid issues like this from clients like yours, but I wouldn't object if they decide to decline the task. TASK DETAIL https://phabricator.wikimedia.org/T230051 WORKBOARD https://phabricator.wikimedia.org/project/board/4149/ EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Anomie Cc: Addshore, Aklapper, Anomie, Yurik, darthmon_wmde, WDoranWMF, Legado_Shulgin, DannyS712, Nandana, thifranc, AndyTan, Davinaclare77, Qtn1293, Techguru.pc, Lahi, Gq86, GoranSMilovanovic, Th3d3v1ls, Hfbn0, QZanden, LawExplorer, Sethakill, Zppix, dg711, _jensen, rosalieper, Jonas, Wong128hk, mobrovac, Wikidata-bugs, aude, jayvdb, Lydia_Pintscher, faidon, Mbch331, Jay8g, fgiunchedi, Legoktm
_______________________________________________ Wikidata-bugs mailing list Wikidata-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs