How to stop going to redirected URL in Google App Engine with Python?
- by user1762586
I'm using urlfetch from google app engine, but it keeps going to the redirected final page even though I use:
result = urlfetch.fetch(classUrl, payload=None, method=urlfetch.GET, headers={}, allow_truncated=False, follow_redirects=False)
E.g. if classUrl was a searched term in Google
(https://www.google.com/search?q=setInstanceFollowRedirects()+python&oq=setInstanceFollowRedirects()+python&sugexp=chrome,mod=0&sourceid=chrome&ie=UTF-8)
it would redirect me to www.google.com
How do I stop this redirection? Thanks!