https://bugzilla.wikimedia.org/show_bug.cgi?id=28884
Web browser: ---
Bug #: 28884
Summary: Identifying the API client for browser-based
JavaScript
Product: Wikimedia
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: Site requests
AssignedTo: [email protected]
ReportedBy: [email protected]
Classification: Unclassified
The current User-Agent policy for Wikimedia sites [1] restricts web (and
possibly HP webOS) developers [2], because "User-Agent" can't be updated by the
XMLHttpRequest::setRequestHeader() method [3].
The official Wikipedia iPhone app has "User_Agent" instead of "User-Agent" [4].
Please could this custom "User_Agent" header field be supported for other
clients?
Alternatively, the "MediaWiki-API-Error" header field is already in use [5].
Please could this prefix be reused in a custom "MediaWiki-API-Key" or
"MediaWiki-User-Agent" header field?
[1] <http://meta.wikimedia.org/wiki/User-Agent_policy>
[2]
<http://www.mediawiki.org/wiki/API:Quick_start_guide#Identifying_your_client>
[3] <http://www.w3.org/TR/XMLHttpRequest/#the-setrequestheader-method>
[4]
<https://github.com/wikimedia/wikipedia-iphone/blob/master/Classes/RootViewController.m>
[5] <http://www.mediawiki.org/wiki/API:Errors_and_warnings#Errors>
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l