As of Monday Feb 15, passing a User-Agent header is mandatory for *all* HTTP requests to Wikimedia sites. This includes the API. If your client doesn't provide a User-Agent header, it'll receive HTTP 403 errors with the text "Please provide a User-Agent" or something along those lines. This was announced in a (now rather lengthy) thread on wikitech-l: http://lists.wikimedia.org/pipermail/wikitech-l/2010-February/046777.html
Ideally, your User-Agent header should identify your client in such a way that Wikimedia staff are able to figure out who to contact if your client is somehow engaging in disruptive behavior. Putting in an e-mail address works well for this, but mentioning your wiki username, the name of the wiki page of the tool (with wiki prefix, so they know on which of the 812 wikis to look) or a URL to a page about you or your tool are fine too, provided that they lead to a functional way of contacting you.
Please don't take this as "if I set a User-Agent my client will potentially be blocked". If it's being disruptive, it'll be blocked anyway; if you set a User-Agent header, you'll be informed immediately, or better, get a chance to fix your client without having it blocked.
Roan Kattouw (Catrope)
_______________________________________________ Mediawiki-api-announce mailing list Mediawiki-api-announce@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce
On Wed, Feb 17, 2010 at 12:00:48PM +0100, Roan Kattouw wrote:
As of Monday Feb 15, passing a User-Agent header is mandatory for *all* HTTP requests to Wikimedia sites. This includes the API.
If you want to thank someone for the change being made 2 days before the announcement, go find Domas.
Ideally, your User-Agent header should identify your client in such a way that Wikimedia staff are able to figure out who to contact if your client is somehow engaging in disruptive behavior.
Do they pay any attention to the HTTP "From" header defined in RFC 2616 section 14.22 for exactly that purpose?[1]
[1] http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.22
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
Ideally, your User-Agent header should identify your client in such a way that Wikimedia staff are able to figure out who to contact if your client is somehow engaging in disruptive behavior.
Do they pay any attention to the HTTP "From" header defined in RFC 2616 section 14.22 for exactly that purpose?[1]
[1] http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.22
If they can't be bothered to set a UA, you'd expect them to set a From header? I think you have more faith in these people then the rest of us.
On Wed, Feb 17, 2010 at 05:26:51PM -0600, Q wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
Ideally, your User-Agent header should identify your client in such a way that Wikimedia staff are able to figure out who to contact if your client is somehow engaging in disruptive behavior.
Do they pay any attention to the HTTP "From" header defined in RFC 2616 section 14.22 for exactly that purpose?[1]
[1] http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.22
If they can't be bothered to set a UA, you'd expect them to set a From header? I think you have more faith in these people then the rest of us.
You missed the point of my question. My bot currently doesn't have an email address or url in the user agent, but does specify an email address in the From header. I'm wondering if I need to change that.
mediawiki-api@lists.wikimedia.org