Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我向某个站点发出 GET 请求时,我想禁止 httplib2 跟随重定向。这可能吗?
Http在您的对象上禁用重定向:
Http
import httplib2 http = httplib2.Http() http.follow_redirects = False