Most HTTP libs in most languages will set a default user agent, and
it's usually pretty easy to override it. I'd suggest appname/0.1 where
appname is something that identifies your app and is a valid user
agent - Google can help you there. I doubt the version number is
important to anyone but you.
-Stuart
--
http://stut.net/projects/twitter
2009/6/16 funkatron <funk...@gmail.com>:
Doug: Presumably the body of the 403 response will contain a suitable
descriptive error message in the usual format?
-Stuart
--
http://stut.net/projects/twitter
2009/6/16 Naveen Kohli <navee...@gmail.com>:
Erm, for sites like TweetGrid, TweetChat, etc, which are all
browser-based client-side driven sites, the users' browser will make
the request. In this case the HTTP Referrer can be (and often is)
unset. The user-agent, however, is usually set for all browsers, but
sometimes people use plugins to mask or delete that, even. Just and
FYI that not all of us have control over this.
-Chad
Let me clarify a bit. For server-side processing please set the
User-Agent header. I recommend using your domain name, or if you don't
have one (which is odd) your appname. Something like "myapp.com" or
"myapp". By using domain name we'll be able to check out the site and
reach out to contact people if we suspect them of abuse. Spammers
often don't respond to questions from the services they abuse, and if
someone is using your user-agent falsely you'll have the possibility
of saying "That's not me, I'm not on app engine". For client-side
processing like TweetGrid the browser will send a User-Agent and
referrer unless you're doing something exceedingly odd, so you should
be fine.
This change is mostly to combat an increasing amount of spam
coming from "cloud" services like ecs and appengine. At first we'll
only be applying this restriction to those IP addresses but it may
need to be broadened as time goes on. If you're writing client
software please add a user-agent in case we end up having to widen
this in the future. This seems like a better plan than the Media
Temple fiasco we went though last time we blocked a shared service for
hosting spammers [1].
Thanks;
– Matt Sanford / @mzsanford
Twitter Dev
[1] - https://twitter.com/mzsanford/status/1924718435
Redefining HTTP spec, eh :-)
Whatever makes twitter boat float. Lets hope for the best. Just concerned that some firewalls or proxies tend to remove "referrer".
Are you sure this is a flame war as defined by RFC 1855 [1]?
...sorry, had to :)
-Chad
-Chad
I didn't know about the X-Twitter-Client headers, thanks for the
info.
Thanks;
– Matt Sanford / @mzsanford
Twitter Dev
If you have added a User-Agent header you shouldn't have any
problems with the new restriction.
Thanks;
– Matt Sanford / @mzsanford
Twitter Dev