I would like to disable httplib2 from following redirects when I make a GET request to some site. Is this possible?

有帮助吗?

解决方案

Disable redirects on your Http object:

import httplib2

http = httplib2.Http()
http.follow_redirects = False
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top