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 than one redirect.
On Jan 17, 10:18 am, ehmo <[email protected]> wrote:
> 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.
>
> any idea?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---