Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change User-Agent on Google App Engine UrlFetch service?

Is it possible to change User-Agent of Google App Engine UrlFetch service?

like image 338
systempuntoout Avatar asked Apr 30 '10 09:04

systempuntoout


1 Answers

Ok found it, it's possible since SDK 1.2.1 was released (Issue 342).
You just have to specify the User-Agent header:

urlfetch.fetch(url, headers = {'User-Agent': "MyApplication_User-Agent"}) 
like image 148
systempuntoout Avatar answered Sep 20 '22 12:09

systempuntoout