[google-appengine] Re: How to get url from fetchurl?

2009-01-17 Thread Chris Tan
You can follow redirects manually like so: response = urlfetch.fetch(url, allow_truncated=True, follow_redirects=False) if 'Location' in response.headers: url = response.headers.get('Location') response = urlfetch.fetch(url, allow_truncated=True) You could also loop this to follow more t

[google-appengine] Re: How to get url from fetchurl?

2009-01-17 Thread Alexander Kojevnikov
> I want to know actual url, where i'm via fetchurl. Something like > geturl in urllib2. > > for example if i've follow_redirects=True, then i want to know which > url is the ending one. > The corresponding issue 404 [1] is fixed however I don't see how we can retrieve the final URL. The headers p