pyfoo / python-twitter

Automatically exported from code.google.com/p/python-twitter
Apache License 2.0
0 stars 0 forks source link

User-Agent header value is not getting set properly #98

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run Twitter Python with App engine
2. Create Api Object to make request
3. User-Agent value is set to 'Python-urllib/2.5 AppEngine-Google;
(+http://code.google.com/appengine) instead of 'Python-urllib/2.5
(python-twitter/0.7)'

What is the expected output? What do you see instead?
DEBUG    2009-10-08 23:05:04,375 urlfetch_stub.py:188] Making HTTP request:
<removed>
, headers = {'Host': 'twitter.com', 'Connection': 'close',
'Accept-Encoding': 'gzip', 'User-Agent': 'Python-urllib/2.5
AppEngine-Google; (+http://code.google.com/appengine)'}

What version of the product are you using? On what operating system?
Google App Engine + Twitter Python Client

Please provide any additional information below.
Twitter Search API usage requires that applications include a unique and
identifying User Agent string. Using the Search API but failing to include
a User Agent string provides a lower rate limit.

Is it possible to fix this so that I can provide custom User-Agent header
value.

Original issue reported on code.google.com by akshar.dave on 8 Oct 2009 at 11:20