Google App Engine User-Agent

1 view
Skip to first unread message

Sven via StackOverflow

unread,
Oct 15, 2016, 2:55:08 PM10/15/16
to google-appengin...@googlegroups.com

I am working on sending a GET request to an API from my Google App Engine application. However, Google App Engine automatically appends AppEngine-Google; (+http://code.google.com/appengine; appid: APPID) to the end of my User-Agent, causing my request to return 403 forbidden. Is there any way around having this appended to my User-Agent or is there another way to successfully reach the API?



Please DO NOT REPLY directly to this email but go to StackOverflow:
http://stackoverflow.com/questions/40062947/google-app-engine-user-agent

TomTasche via StackOverflow

unread,
Oct 19, 2016, 8:43:42 AM10/19/16
to google-appengin...@googlegroups.com

No, you can't stop AppEngine appending an identifier to the User-Agent of each request. I guess this is a security measure to identify "spammers" easily. What we ended up doing is hosting a "proxy" on a Compute Engine instance which you pass the URL to fetch via a query-parameter and it returns the contents of that URL.



Please DO NOT REPLY directly to this email but go to StackOverflow:
http://stackoverflow.com/questions/40062947/google-app-engine-user-agent/40131640#40131640
Reply all
Reply to author
Forward
0 new messages